Commit Graph

46 Commits (d1cc3bd6c2e0c0a7e63c600f12460d31d8d2cdf6)

Author SHA1 Message Date
Qingping Hou d1cc3bd6c2 ota(fix): always purge ota update files 7 years ago
a-kohout 870c4d3859 Update koreader.sh; fixes #2791
tar fails to apply permissions on fat32 filesystem. thus mv doesn't get executed and consequently OTA package gets applied on every launch.
7 years ago
Frans de Jonge 0eec5b5174 Simplify koreader.sh
`-C "${KOREADER_DIR}"` isn't needed, see https://github.com/koreader/koreader/issues/2752#issuecomment-293698136.
7 years ago
Frans de Jonge 5de8310aa6 Kobo (koreader.sh): install OTA update in working directory
Thanks to @a-kohout

Fixes #2752
7 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
```
7 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)
7 years ago
pazos 3a75b6deab use fullpath for reboot 7 years ago
pazos 31b246574b Kobo framebuffer: workaround to support +4.0FW 7 years ago
Martín Fernández 79fd02e020 Kobo: remove useless error messages from ntx_hwconfig 7 years ago
Qingping Hou 744115de9f crash.log(fix): obviously I suck at counting zeros 8 years ago
Hzj_jie 8e5f294902 Return correct result from koreader.sh 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
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.
8 years ago
Frans de Jonge 8643d38a68 Removed some bashisms 8 years ago
NiLuJe e90f1018db Make the KFMon chekc actually accurate...
Sleep does wonder for your brain!
8 years ago
NiLuJe b406e3591f Update Kobo startup script for KFMon
Takes care of some potentially critical stuff ;p
8 years ago
Qingping Hou dceaa01250 minor: redirect all output to crash.log 8 years ago
Frans de Jonge b8b0684e30 Add a comment with 'from_nickel', fixes #1889 8 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...
8 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...
8 years ago
zijiehe e7b8bdcde2 Check whether sd card is presenting and mounting as RO, before do the real remount 8 years ago
zijiehe 38553b5ef8 Mount SD card as RW on kobo, but ignore errors, since we may not have sd
card installed.
8 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 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.
9 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.
9 years ago
NiLuJe a99359fa44 Add a comment to explicit the KSM check 9 years ago
NiLuJe 7fd45c6cd3 And even more Kobo startup script tweaks.
Good news: restarting nickel doesn't deadlock anymore. Yay.
9 years ago
NiLuJe f259ec4259 Wipe dead code 9 years ago
NiLuJe 7db252a27e More Kobo startup scripts tweaks... 9 years ago
NiLuJe 476ae3322c sync before killing nickel
Hopefully good enough to avoid trashing the DB
9 years ago
NiLuJe 97ad4afa92 Minor comment tweak 9 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...
9 years ago
NiLuJe c2bd85bba4 More Kobo scripts tweak...
Trying to figure out why nickel deadlocks on restart...
9 years ago
NiLuJe 1945873682 Tweak the comment a bit 9 years ago
NiLuJe 6f815e2bdf Minor pass of cleanup of the Kobo scripts.
re #1503
9 years ago
HW de9f1a281d Merge pull request #1499 from Markismus/master
Update koreader.sh
9 years ago
Markismus 1e9996f475 Update koreader.sh
Compatibility with KSM is resolved. Koreader will now work from any directory it is installed in.

KSM7 tweaks `koreader.sh` line 5 from a hardcoded path to the line used above. I've added the change in line 12 to allow OTA updating.
9 years ago
chrox bb164c1deb Load our own shared libraries if possible
This should fix #1482.
9 years ago
Huang Xin b56c01c382 Merge pull request #1423 from Markismus/master
Update networkmgr.lua
9 years ago
Markismus 6e95673d80 Update koreader.sh
Forgot the export PLATFORM
9 years ago
Markismus 40202fbc6b Update koreader.sh
The commands in networkmgr.lua rely on an assigned value of PLATFORM. As discussed in #1423 this is only the case for child processes of rcS. This seems to be a fine place to check the value of PLATFORM.
9 years ago
chrox a40c172c47 fix mupdf rendering caused by FONTDIR env var
It turns out that one of our mupdf patch reads the FONTDIR env var
and uses it in a totally different way so we will use another env var
EXT_FONT_DIR to define external font directory for different platforms.
9 years ago
chrox 077517be0b add FONTDIR env variable
to support custom font directory for EPUB documents

Now Koreader could find fonts in the "fonts" directory in the USB root
directory of kindle, Kobo and PocketBook devices, thus no need to copy
fonts to "koreader/fonts" directory.
9 years ago
chrox 46963df0bb don't need to rebuild ota installed package if it's detected 10 years ago
chrox 2d3c502948 move platform dependent files into 'platform' directory 10 years ago