-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathInstall.sh
More file actions
39 lines (35 loc) · 1.21 KB
/
Copy pathInstall.sh
File metadata and controls
39 lines (35 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# Name: Epub thing install
# Author: Marek
# Icon:
if [ ! -d /mnt/us/documents/koi_installer ]; then
echo "koi_installer is not present in /mnt/us/documents, exiting ..."
sleep 3
exit 0
fi
cd /mnt/us/documents/koi_installer
mkdir -p /mnt/us/KOI
echo "Moving binaries to /mnt/us/KOI"
if [ -f /lib/ld-linux-armhf.so.3 ]; then
echo "Detected firmware > 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"
echo "Not supported! (i don't feel like compiling it rn)"
sleep 5
exit 0
# 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
rm -rf /mnt/us/documents/koi_installer