Quote:
Originally Posted by thomass
you are welcome, happy to help.
BTW: maybe this way of sh to install keystore is much better
Code:
#install merged developer keystore
#backup the old one if exist:
if [ -f /var/local/java/keystore/developer.keystore ]
then
cp -f /var/local/java/keystore/developer.keystore /mnt/us/launchpad/developer.keystore.backup
fi
#move the new one:
mntroot rw
if [ -f /mnt/us/launchpad/developer.keystore ]
then
mv -f /mnt/us/launchpad/developer.keystore /var/local/java/keystore/developer.keystore
fi
mntroot ro
|
Thanks. I actually threw together something similar, as well as an uninstall for those who may want it. Same thing as yours. BTW, while 'mntroot rw' and 'mntroot ro' is required for some of the scripts/commands, you don't need them for this one as the '/var' folder isn't root.
keystore.ini
Code:
[Actions]
; Kindlet apps/games keystore
K I = !source /mnt/us/launchpad/keystore_install.sh
K U = !source /mnt/us/launchpad/keystore_uninstall.sh
keystore_install.sh
Code:
###### Kindlet apps/games keystore
# backup the old one if exist:
if [ -f /var/local/java/keystore/developer.keystore ]
then
cp /var/local/java/keystore/developer.keystore /mnt/us/launchpad/developer.keystore.bkp_orig
fi
# move the new one and keep a backup of it, just in case:
if [ -f /mnt/us/launchpad/developer.keystore ]
then
cp /mnt/us/launchpad/developer.keystore /var/local/java/keystore/
mv /mnt/us/launchpad/developer.keystore /mnt/us/launchpad/developer.keystore.bkp
fi
exit
keystore_uninstall.sh
Code:
###### Kindlet apps/games keystore
# remove new one and its backup:
mv /var/local/java/keystore/developer.keystore /mnt/us/launchpad/
rm /mnt/us/launchpad/developer.keystore.bkp
# restore the old one if exist:
if [ -f /mnt/us/launchpad/developer.keystore.bkp_orig ]
mv /mnt/us/launchpad/developer.keystore.bkp_orig /var/local/java/keystore/developer.keystore
fi
exit