View Single Post
Old 12-21-2011, 08:21 PM   #13
inameiname
Groupie
inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.
 
Posts: 156
Karma: 20390
Join Date: Feb 2009
Device: none
Quote:
Originally Posted by thomass View Post
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
Attached Files
File Type: zip keystore_ini_and_scripts.zip (803 Bytes, 502 views)

Last edited by inameiname; 12-21-2011 at 08:28 PM.
inameiname is offline   Reply With Quote