View Single Post
Old 06-06-2018, 03:29 PM   #284
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 CH23 View Post
Speaking of handling updates, Tshering, what can i change within the code to automatically handle updates? there's one waiting for me and i'd like to apply it.
Since I have the rmc web interface working, if i could do it through there, that'd be great as well.

I am not sure how an update can wait for you, and you are still able to get into nickel. However you do it, for the following I assume that in .kobo there is
  • KoboRoot.tgz
  • manifest.md5sum
  • upgrade (folder)

If you are not able to get into nickel (because KSM asks you to handel the update), rename KoboRoot.tgz to KoboRoot2.tgz. But then you have to change the name also in the command lines below. It occurs three times (not counting the one occurrence in the answer "KoboRoot.tgz installed").

Let us start:
# kill nickel by pressing the button "exit nickel"
# kill KSM by pressing the button "kill KSM"

#General note: to execute a command, copy the text into the text input field and press the button "execute"

# install KoboRoot.tgz
Code:
tar ztf "/mnt/onboard/.kobo/KoboRoot.tgz" > /dev/null && tar zxf /mnt/onboard/.kobo/KoboRoot.tgz -X $ksmuser/excludefiles/KR_install_controlled.txt -C / && ( cat /usr/local/Kobo/revinfo >> /usr/local/Kobo/install.log; echo "KoboRoot.tgz installed" ) || echo "failed"
# wait for the answer "KoboRoot.tgz installed", then remove KoboRoot.tgz
Code:
rm -f /mnt/onboard/.kobo/KoboRoot.tgz
# install the stuff from the upgrade folder
Code:
/etc/init.d/upgrade-wifi.sh
# wait until it has finished, and delete the update folder
Code:
rm -rf /mnt/onboard/.kobo/upgrade
# finalise it
Code:
sync
wait a bit and then press "reboot"

Edit: An alternative would be to rename the folder kbmenu_user to something, so that KSM does not interfer, let the update install; rename the folder to kbmenu_user, and install the KoboRoot.tgz from KBStartMenu_09_restore.zip (find it in the first post).

Last edited by tshering; 06-06-2018 at 03:43 PM.
tshering is offline   Reply With Quote