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
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
0f184e30ed
Tweak nickel restart script
...
Also restart sickel...
8 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
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
85445b12f1
Guess what? More comments ^^.
10 years ago
NiLuJe
da891ca335
And comment that, because I'm likely to forget.
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
NiLuJe
7db252a27e
More Kobo startup scripts tweaks...
10 years ago
NiLuJe
d4f80209d9
Minor comment tweak
10 years ago
NiLuJe
6c1681b595
Well, go for the lesser evil.
...
For some unknowable reason, restarting nickel on exit deadlocks on my
H2O, so, do a full reboot instead, at least *that* works.
I'm probably one of the only people running KO manually anyway...
10 years ago
NiLuJe
c2bd85bba4
More Kobo scripts tweak...
...
Trying to figure out why nickel deadlocks on restart...
10 years ago
NiLuJe
6f815e2bdf
Minor pass of cleanup of the Kobo scripts.
...
re #1503
10 years ago
chrox
2d3c502948
move platform dependent files into 'platform' directory
10 years ago