Thread: Glo Kobo Night Mode
View Single Post
Old 05-05-2013, 04:32 PM   #54
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by yoq View Post
The problem is, autorun.sh is execute before the internal sd storage is mounted. If you look into rcS, it starts with "/sbin/udevadm trigger", the mount comes a few lines after that.
Thinking about it, it should be possible to wait for the mount in the script.
Maybe one could prepare the uninstall already at the time of the installation in the rcS file.

Code:
if [ -e /root/unistallscreenInv.sh ]; then
	/root/unistallscreenInv.sh
	/usr/local/Kobo/nickel -qws \&
else
	LD_PRELOAD=/mnt/onboard/.kobo/screenInv.so /usr/local/Kobo/nickel -qws \&
fi
unistallscreenInv.sh would do the cleanup. I don't know how to restore the original crS from the unistallscreenInv.sh. Would be easy if the "if ... fi" block would be a one-liner. Is this possible by using semicolons? (I am not a linux user and just started with bash because of the kobo. So I am just fooling around.)

Last edited by tshering; 05-06-2013 at 03:36 AM. Reason: corrected elif to else
tshering is offline   Reply With Quote