mirror of https://github.com/koreader/koreader
[chore] A round of Kobo specific script cleanup (#3876)
* Flag those scripts as executable in git Somewhat irrelevant because we'll end up living on a FAT32 drive, but, still. * Cleanup Kobo startup script Support KFMon >= 0.9.5 Don't siphon PRODUCT from nickel, it's exported by rcS, so fmon/KFMon already inherit it. Siphon NICKEL_HOME, on the off-chance nickel fails to figure that one out for itself on restart. Siphon LANG (This may be a terrible idea, rcS sets LANG to en_US.UTF-8, while we set LC_ALL to en_US.UTF-8, but I don't know if nickel itself ever updates LANG, since I have mine set to en_US also ;)). My secret hope if that everything's working as it should and this ensures we default to Nickel's locale on fresh installs? Remove the extra sync on startup, both @Baskerville's fmon and KFMon are smart enough not to do anything overly stupid, and recent FW versions have a slightly more resilient DB anyway (rollback journal -> WAL). This effectively shaves over a second off our startup time. * Slimmed down the nickel restart script. Based on current rcS Scrapped a bucketload of irrelevant & legacy crap, since we're never bootstrapping nickel, only restarting it. * Update Kobo install instrcutions. Point to KSM09, @Baskerville's fmon, and KFMon. Deprecate legacy fmon, and as such, stop shipping a useless KoboRoot tarball.pull/3881/head
parent
2e094f97c9
commit
bdb82d09c1
@ -1,19 +1,23 @@
|
|||||||
Installation instructions for Kobo:
|
Installation instructions for Kobo:
|
||||||
|
|
||||||
|
|
||||||
Newer installation based on Start Menu:
|
Recommended installation method based on Start Menu:
|
||||||
- Install "Start Menu" (http://www.mobileread.com/forums/showthread.php?t=255978)
|
- Install "Start Menu" (https://www.mobileread.com/forums/showthread.php?t=293804)
|
||||||
- Extract the koreader folder of the zip into the ".adds" directory (both KoboRoot.tgz and the koreader.png file are only needed for the older installation based on Filemonitor. See below.).
|
- Extract the "koreader" folder from the zip into the ".adds" directory (the koreader.png file are only needed for the alternate installation methods based on fmon. See below.).
|
||||||
|
|
||||||
Select koreader from the Start Menu to start.
|
Select koreader from the Start Menu to start.
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
Older installation based on Filemonitor:
|
Alternate installation method based on fmon:
|
||||||
- Put the image included in the zip (called "koreader.png") in the main folder of your kobo and disconnect it from your computer. Open the image on the reader, go back to the home and then, just to be extra-safe, reboot it.
|
- Put the image included in the zip (called "koreader.png") in an "icons" folder created in the main folder of your Kobo and disconnect it from your computer. Add the icon to a collection, set the view to List View and open the icon, then restart your device.
|
||||||
- Install "Files Monitor" (http://www.mobileread.com/forums/showthread.php?t=218283).
|
- Install "fmon" (https://github.com/baskerville/fmon).
|
||||||
- Extract the remaining content of the zip into the ".kobo" directory (both KoboRoot.tgz and the koreader folder).
|
- Extract the remaining content of the zip (the "koreader" folder) into the ".adds" directory.
|
||||||
|
|
||||||
Selecting the KOReader icon in your home, you will be able to launch KOReader. Simple enough, isn't it? Just be sure to process the image properly (follow those steps carefully) if it's the first time you install koreader, if you made a factory reset or if you deleted it in some way, otherwise you could end up launching koreader automatically at every boot, being unable to exit it without a factory reset.
|
Select the KOReader icon in your home to launch KOReader. Simple enough, isn't it? Just be sure to process the image properly. Follow these steps carefully if it's your first time installing KOReader, after a factory reset, or if you deleted it in some way. This will ensure KOReader starts properly.
|
||||||
|
|
||||||
When you update koreader, it should be sufficient to extract the koreader folder, without KoboRoot.tgz - that one is needed to add the launcher.
|
When you update KOReader manually, it should be sufficient to simply extract the "koreader" folder.
|
||||||
|
|
||||||
|
NOTE: Using the legacy version of fmon (http://www.mobileread.com/forums/showthread.php?t=218283) is *STRONGLY* discouraged.
|
||||||
|
NOTE²: If you like the concept, and want to check out something a bit more flexible/complex, check out KFMon (https://github.com/NiLuJe/kfmon).
|
||||||
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# NOTE: Legacy fmon script. Not needed with @Baskerville's fmon.
|
||||||
"${root:?}/.kobo/fmon/fmon" "${root}/koreader.png" "${root}/.kobo/koreader/koreader.sh" &
|
"${root:?}/.kobo/fmon/fmon" "${root}/koreader.png" "${root}/.kobo/koreader/koreader.sh" &
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# PATH export is only needed if you run this script manually from a shell
|
# PATH export is only needed if you run this script manually from a shell
|
||||||
export PATH=$PATH:/sbin
|
export PATH="${PATH}:/sbin"
|
||||||
|
|
||||||
# Release IP and shutdown udhcpc.
|
# Release IP and shutdown udhcpc.
|
||||||
|
|
||||||
pkill -9 -f '/bin/sh /etc/udhcpc.d/default.script'
|
pkill -9 -f '/bin/sh /etc/udhcpc.d/default.script'
|
||||||
ifconfig eth0 0.0.0.0
|
ifconfig eth0 0.0.0.0
|
||||||
|
Loading…
Reference in New Issue