forked from notmarek/KOReaderIntegration
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInstall.sh
More file actions
24 lines (22 loc) · 907 Bytes
/
Install.sh
File metadata and controls
24 lines (22 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
mkdir -p /mnt/us/KOI
echo "Moving binaries to /mnt/us/KOI"
if [ -f /lib/ld-linux-armhf.so.3 ]; then
echo "Detected firmware above 5.16.2.1.1, using hardfp binaries"
mv koreader_helper /mnt/us/KOI
mv libKOIExtractor.so /mnt/us/KOI
else
echo "Detected firmware <= 5.16.2.1.1, using softfp binaries"
mv koreader_helper_softfp /mnt/us/KOI/koreader_helper
mv libKOIExtractor_softfp.so /mnt/us/KOI/libKOIExtractor.so
fi
echo "Moving koreader_helper.sh to /mnt/us/koreader"
mv koreader_helper.sh /mnt/us/koreader
echo "Patching KOReaders device.lua to exit correctly"
patch /mnt/us/koreader/device.lua < device.lua.patch
echo "Registering EPUB extractor"
/usr/bin/register EpubExtractor.install
echo "Registering KOReader integration"
/usr/bin/register KoreaderIntegration.install
echo "Done! Triggering a full scan of the library"
lipc-set-prop com.lab126.scanner doFullScan 1