mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
44 lines
2.4 KiB
Bash
44 lines
2.4 KiB
Bash
#!/bin/sh
|
|
PATH=$PATH:/usr/sbin:/sbin
|
|
|
|
# start fmon again:
|
|
( usleep 400000; /etc/init.d/on-animator.sh ) &
|
|
|
|
# environment needed by nickel, from /etc/init.d/rcS:
|
|
|
|
export INTERFACE=eth0
|
|
export WIFI_MODULE=dhd
|
|
export WIFI_MODULE_PATH=/drivers/ntx508/wifi/$WIFI_MODULE.ko
|
|
export NICKEL_HOME=/mnt/onboard/.kobo
|
|
export LD_LIBRARY_PATH=/usr/local/Kobo
|
|
|
|
# start nickel again (from tshering's start menu v0.4), this should
|
|
# cover all firmware versions from 2.6.1 to 3.4.1 (tested on a kobo
|
|
# mini with 3.4.1 firmware)
|
|
|
|
( /usr/local/Kobo/pickel disable.rtc.alarm
|
|
if [ ! -e /etc/wpa_supplicant/wpa_supplicant.conf ]; then
|
|
cp /etc/wpa_supplicant/wpa_supplicant.conf.template /etc/wpa_supplicant/wpa_supplicant.conf
|
|
fi
|
|
echo 1 > /sys/devices/platform/mxc_dvfs_core.0/enable
|
|
/sbin/hwclock -s -u
|
|
) &
|
|
|
|
if [ ! -e /usr/local/Kobo/platforms/libkobo.so ]; then
|
|
export QWS_KEYBOARD=imx508kbd:/dev/input/event0
|
|
export QT_PLUGIN_PATH=/usr/local/Kobo/plugins
|
|
if [ -e /usr/local/Kobo/plugins/gfxdrivers/libimxepd.so ]; then
|
|
export QWS_DISPLAY=imxepd
|
|
else
|
|
export QWS_DISPLAY=Transformed:imx508:Rot90
|
|
export QWS_MOUSE_PROTO="tslib_nocal:/dev/input/event1"
|
|
fi
|
|
/usr/local/Kobo/hindenburg &
|
|
/usr/local/Kobo/nickel -qws -skipFontLoad
|
|
else
|
|
/usr/local/Kobo/hindenburg &
|
|
insmod /drivers/ntx508/misc/lowmem.ko &
|
|
[ `cat /mnt/onboard/.kobo/Kobo/Kobo\ eReader.conf | grep -c dhcpcd=true` == 1 ] && dhcpcd -d -t 10 &
|
|
/usr/local/Kobo/nickel -platform kobo -skipFontLoad
|
|
fi
|