mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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.
This commit is contained in:
@@ -37,6 +37,27 @@ else
|
||||
args=$@
|
||||
fi
|
||||
|
||||
# check whether PLATFORM has a value assigned by rcS
|
||||
# PLATFORM is used in koreader for the path to the WiFi drivers
|
||||
if [ -n "$PLATFORM" ]; then
|
||||
PLATFORM=freescale
|
||||
if [ `dd if=/dev/mmcblk0 bs=512 skip=1024 count=1 | grep -c "HW CONFIG"` == 1 ]; then
|
||||
CPU=`ntx_hwconfig -s -p /dev/mmcblk0 CPU`
|
||||
PLATFORM=$CPU-ntx
|
||||
fi
|
||||
|
||||
if [ $PLATFORM == freescale ]; then
|
||||
if [ ! -s /lib/firmware/imx/epdc_E60_V220.fw ]; then
|
||||
mkdir -p /lib/firmware/imx
|
||||
dd if=/dev/mmcblk0 bs=512K skip=10 count=1 | zcat > /lib/firmware/imx/epdc_E60_V220.fw
|
||||
sync
|
||||
fi
|
||||
elif [ ! -e /etc/u-boot/$PLATFORM/u-boot.mmc ]; then
|
||||
PLATFORM=ntx508
|
||||
fi
|
||||
fi
|
||||
# end of value check of PLATFORM
|
||||
|
||||
./reader.lua $args 2> crash.log
|
||||
|
||||
if [ $from_nickel -ne 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user