Quote:
Originally Posted by yoq
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.)