View Single Post
Old 10-04-2012, 11:53 PM   #33
pinchajetas
Junior Member
pinchajetas began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: Kindle 4
Please some help

Quote:
Originally Posted by Gondolkodo View Post
You just have to SSH into the kindle (e.g. with the USBnet-methode) and then create a RUNME.sh in the /mnt/us with the following content:

Code:
mntroot rw
if [ ! -f /var/local/adunits.bkp ]; then
	mv /var/local/adunits /var/local/adunits.bkp
	touch /var/local/adunits
fi
mntroot ro
Save, exit and make the following:
Code:
chmod +x /mnt/us/RUNME.sh; mntroot rw
Make a backup about the mntus.params file with this:
Code:
cp /var/local/system/mntus.params /var/local/system/mntus.params.BKP
Extend the original mntus.params with the followings:
Code:
if [ -e /mnt/us/RUNME.sh ]; then
	sh /mnt/us/RUNME.sh
fi
If you would like to see a log then change the "sh /mnt/us/RUNME.sh" with "sh /mnt/us/RUNME.sh > /mnt/us/RUNME.log"

If you are ready, just create and link the screensaver folder, just like before:
Code:
mkdir /mnt/us/screensaver
mount /dev/mmcblk0p1 /mnt/base-mmc
mv /mnt/base-mmc/opt/amazon/screen_saver/600x800 /mnt/base-mmc/opt/amazon/screen_saver/600x800.bkp
ln -sfn /mnt/us/screensaver /mnt/base-mmc/opt/amazon/screen_saver/600x800
exit
As far as I know this is the only black/hackway and there's no "block the ads" and "put screensavers" hack.
I tried it on my own K4 NT SO, works.
Hi guys, I have a problem with this code, and I hope you can help me with it:
Code:
if [ -e /mnt/us/RUNME.sh ]; then
	sh /mnt/us/RUNME.sh
fi
I only get this answer:

"/mnt/us/RUNME.sh: line 6: syntax error: unexpected end of file (expecting "then")"

So I changed it to:
Code:
if [ -e /mnt/us/RUNME.sh ]; 
then [ sh /mnt/us/RUNME.sh]
fi
But I get this:
"sh: /mnt/us/RUNME.sh: unknown operand"

What should I do to get it right?
pinchajetas is offline   Reply With Quote