Frans de Jonge
5de8310aa6
Kobo (koreader.sh): install OTA update in working directory
...
Thanks to @a-kohout
Fixes #2752
8 years ago
Frans de Jonge
e8c01274f4
Travis: enforce shellscript coding style
...
* enormous coding style update
* update luajit-launcher
All changes are formatting only except for:
* new more correct pushd/popd style
* keeps useful indentation
* prevents execution of commands when pushd failed (cf. https://github.com/koalaman/shellcheck/wiki/SC2164 and https://github.com/koalaman/shellcheck/issues/863 )
```
pushd some_dir && {
command1
command2
} || exit
popd
```
8 years ago
Frans de Jonge
e5bcdee85e
Add ShellCheck and shfmt shell code quality analysis ( #2712 )
...
* Add ShellCheck and shfmt shell code quality analysis
* kobo/koreader.sh: remove useless $PREFIX
* kobo/koreader.sh: fix rotation issue caused by #2731
* Travis: speed up (caching Luarocks should shave a minute off install process)
8 years ago
pazos
3a75b6deab
use fullpath for reboot
8 years ago
pazos
31b246574b
Kobo framebuffer: workaround to support +4.0FW
8 years ago
Qingping Hou
c34e04e081
wifi(fix): use -D wext for kobo wpa_supplicant
8 years ago
Qingping Hou
6b50a2783b
kobo(fix): load wifi module by ENV
...
Aura One uses 8189fs instead of dhd module
8 years ago
Martín Fernández
79fd02e020
Kobo: remove useless error messages from ntx_hwconfig
8 years ago
Qingping Hou
f95ad00b9e
feat: add logger module & rewrite kobo suspend script in lua
8 years ago
poire-z
65881738b5
disable-wifi.sh: decreased sleep duration
8 years ago
Qingping Hou
744115de9f
crash.log(fix): obviously I suck at counting zeros
8 years ago
poire-z
08a92de179
Fix: avoid system hang when disabling wifi ( #2394 )
8 years ago
Qingping Hou
b7cdf103e3
chore: fix luacheck error & add comment to release-ip.sh
8 years ago
Hzj_jie
8e5f294902
Return correct result from koreader.sh
8 years ago
Qingping Hou
efae2ed16f
network(fix): automaticallly obtain IP if network is already authenticated
8 years ago
Qingping Hou
705d3e4cb4
doc(minor): document alternative usb plug event source for kobo
8 years ago
Qingping Hou
0ed95406a4
log(fix): do not pipe stdout to /dev/null during crash log rotation
8 years ago
Qingping Hou
5309a0a47f
misc: rotate crash.log for kobo/kindle/pocketbook
8 years ago
Qingping Hou
c716fef0e3
minor: change wording in restore-wifi-sync script
8 years ago
Hzj_jie
52bcf87643
always release ip before obtaining a new one
8 years ago
Hzj_jie
da2c57f93a
Automatically connect WIFI after Kobo has been resumed ( #2215 )
...
* Add bash scripts to control WIFI / IP, so we can share them with frontend/device/kobo/device.lua.
* add test cases
8 years ago
NiLuJe
2013a66fdd
Some more Kobo suspend tweaks...
...
Disable wakeup_count handling, that's often causing more harm than
anything else...
Nickel doesn't even use it, that should have been a hint ;).
Make the logging slightly less confusing.
Add commented out debug features (dumping relevant dmesg output).
Re #2188
8 years ago
NiLuJe
0f184e30ed
Tweak nickel restart script
...
Also restart sickel...
8 years ago
NiLuJe
892e3c0f1e
Kobo startup script tweak.
...
When using KFMon, make the reboot on exit user-configurable.
The user can now choose to try to restart Nickel directly, like with
fmon.
For now, we still do a full reboot by default.
9 years ago
Frans de Jonge
8643d38a68
Removed some bashisms
9 years ago
NiLuJe
e90f1018db
Make the KFMon chekc actually accurate...
...
Sleep does wonder for your brain!
9 years ago
NiLuJe
b406e3591f
Update Kobo startup script for KFMon
...
Takes care of some potentially critical stuff ;p
9 years ago
Qingping Hou
dceaa01250
minor: redirect all output to crash.log
9 years ago
Frans de Jonge
b8b0684e30
Add a comment with 'from_nickel', fixes #1889
9 years ago
NiLuJe
770625d756
Tweak the 'IR down on resume' workaround...
...
Only apply it when started from nickel, because I'm guessing we'd have
seen a number of reports of this if it happened more widely...
9 years ago
NiLuJe
ea382aea86
Tweak the sd is ro check a bit
...
Inspired from MRPI, but without a strict check of the device name,
because I'm not sure it'll be the same across the whole range of
Kobos...
9 years ago
NiLuJe
150aac1630
More comment tweaks re: Kobo suspend
9 years ago
NiLuJe
06e1bd4ed2
Slightly more accurate comments re: Kobo suspend
9 years ago
NiLuJe
fe13af9d7e
More Kobo suspend tweaks...
...
Basically more loging to debug suspend issues...
AFAICT, having anything plugged in over USB will screw things up, for
instance.
9 years ago
NiLuJe
6c8bbfd470
Unbreak Kobo frontlight -> off when suspending.
...
If no-one touches anything, flState stays false...
And anyway, we should unconditionally disable the fl on sleep.
9 years ago
zijiehe
e7b8bdcde2
Check whether sd card is presenting and mounting as RO, before do the real remount
9 years ago
zijiehe
38553b5ef8
Mount SD card as RW on kobo, but ignore errors, since we may not have sd
...
card installed.
9 years ago
Cosmin Gorgovan
856ec6d075
Mark suspend.sh for Kobo as executable
...
Otherwise suspend fails to work when running koreader from a FS
which supports execute permissions.
9 years ago
NiLuJe
f9925a8c82
Play with the Kobo suspend script...
...
Because apparently it's not behaving as it should? IDK...
9 years ago
NiLuJe
687aba796d
Fix networkmgr on Kobo
...
To avoid potential issues with USBMS.
Namely, make sure CWD doesn't point to the userstore for persitent
processes.
Make sure wpa_supplicant doesn't try to use our own OpenSSL lib, which,
again, is in the userstore area.
Properly kill our dhcp client invocation on when killing WiFi
Also, some related fixes to the startup script:
Properly kill wpa_supplicant & the dhcp client when we kill
wifi before rebooting to nickel.
9 years ago
arasyi
d3bc8ecb5f
Fix nickel doesn't recognize sdcard after exiting
...
After exiting koreader, nickel will not recognize that sdcard is present.
This patch fixes that
9 years ago
Frans de Jonge
475ee28173
Fix KOReader exit
...
Should reboot less unnecessarily for older versions of KSM, and hopefully this would also be more forward-compatible.
9 years ago
NiLuJe
34cb799818
Fix nickel restart with WiFi up.
...
By killing the WiFi first, since apparently,
nickel really doesn't like that, and causes a deadlock.
re #1503 , re #1504 , fix #1520
10 years ago
NiLuJe
02fcb9037b
Fix startup scripts.
...
Thanks to @Markismus's questions, I realized that some of what i thought
was true, wasn't.
First, pkill is a terrible idea to check for interpreted scripts.
Second, pidof is also potentially not that great for interpreted
scripts, because it'll only work with a shebang, and one that is
following the Linux syntax.
We don't have the full version with the -x to paper over that,
so use pgrep -f instead.
cf.
a736a571d2 (commitcomment-10948910)
for the gory details.
10 years ago
NiLuJe
9f89fc8e47
Fix Kobo startup script w/ KSM
...
pkill probably only checks the actual name of the binary.
We were checking a shell script, which I'm guessing is not launched
via a shebang, so that name was actually an arg to sh, or something like
that.
Use pidof instead, which matches the full command line.
10 years ago
NiLuJe
85445b12f1
Guess what? More comments ^^.
10 years ago
NiLuJe
da891ca335
And comment that, because I'm likely to forget.
10 years ago
NiLuJe
a99359fa44
Add a comment to explicit the KSM check
10 years ago
NiLuJe
7fd45c6cd3
And even more Kobo startup script tweaks.
...
Good news: restarting nickel doesn't deadlock anymore. Yay.
10 years ago
NiLuJe
218d8b3e54
More comments...
10 years ago