2016-09-01 07:05:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-11-19 20:27:32 +00:00
|
|
|
# PATH export is only needed if you run this script manually from a shell
|
[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.
2018-04-15 13:05:45 +00:00
|
|
|
export PATH="${PATH}:/sbin"
|
2016-11-05 23:40:39 +00:00
|
|
|
|
2016-09-01 07:05:40 +00:00
|
|
|
# Release IP and shutdown udhcpc.
|
|
|
|
pkill -9 -f '/bin/sh /etc/udhcpc.d/default.script'
|
2018-05-01 12:49:37 +00:00
|
|
|
ifconfig "${INTERFACE}" 0.0.0.0
|