mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
Removed some bashisms
This commit is contained in:
parent
6e9208ac50
commit
8643d38a68
@ -35,7 +35,7 @@ if pkill -0 nickel ; then
|
|||||||
FROM_NICKEL="true"
|
FROM_NICKEL="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${FROM_NICKEL}" == "true" ] ; then
|
if [ "${FROM_NICKEL}" = "true" ] ; then
|
||||||
# Detect if we were started from KFMon
|
# Detect if we were started from KFMon
|
||||||
FROM_KFMON="false"
|
FROM_KFMON="false"
|
||||||
if pkill -0 kfmon ; then
|
if pkill -0 kfmon ; then
|
||||||
@ -45,7 +45,7 @@ if [ "${FROM_NICKEL}" == "true" ] ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${FROM_KFMON}" == "true" ] ; then
|
if [ "${FROM_KFMON}" = "true" ] ; then
|
||||||
# Siphon nickel's full environment, since KFMon inherits such a minimal one, and that apparently confuses the hell out of Nickel for some reason if we decide to restart it without a reboot...
|
# Siphon nickel's full environment, since KFMon inherits such a minimal one, and that apparently confuses the hell out of Nickel for some reason if we decide to restart it without a reboot...
|
||||||
for env in $(xargs -n 1 -0 < /proc/$(pidof nickel)/environ) ; do
|
for env in $(xargs -n 1 -0 < /proc/$(pidof nickel)/environ) ; do
|
||||||
export ${env}
|
export ${env}
|
||||||
@ -75,7 +75,7 @@ fi
|
|||||||
if [ "$#" -eq 0 ] ; then
|
if [ "$#" -eq 0 ] ; then
|
||||||
args="/mnt/onboard"
|
args="/mnt/onboard"
|
||||||
else
|
else
|
||||||
args="$@"
|
args="$*"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check whether PLATFORM & PRODUCT have a value assigned by rcS
|
# check whether PLATFORM & PRODUCT have a value assigned by rcS
|
||||||
@ -93,7 +93,7 @@ if [ ! -n "${PLATFORM}" ] ; then
|
|||||||
PLATFORM="${CPU}-ntx"
|
PLATFORM="${CPU}-ntx"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${PLATFORM}" == "freescale" ] ; then
|
if [ "${PLATFORM}" = "freescale" ] ; then
|
||||||
if [ ! -s "/lib/firmware/imx/epdc_E60_V220.fw" ] ; then
|
if [ ! -s "/lib/firmware/imx/epdc_E60_V220.fw" ] ; then
|
||||||
mkdir -p "/lib/firmware/imx"
|
mkdir -p "/lib/firmware/imx"
|
||||||
dd if="/dev/mmcblk0" bs=512K skip=10 count=1 | zcat > "/lib/firmware/imx/epdc_E60_V220.fw"
|
dd if="/dev/mmcblk0" bs=512K skip=10 count=1 | zcat > "/lib/firmware/imx/epdc_E60_V220.fw"
|
||||||
@ -113,7 +113,7 @@ fi
|
|||||||
|
|
||||||
./reader.lua "${args}" > crash.log 2>&1
|
./reader.lua "${args}" > crash.log 2>&1
|
||||||
|
|
||||||
if [ "${FROM_NICKEL}" == "true" ] ; then
|
if [ "${FROM_NICKEL}" = "true" ] ; then
|
||||||
if [ "${FROM_KFMON}" != "true" ] ; then
|
if [ "${FROM_KFMON}" != "true" ] ; then
|
||||||
# start kobo software because it was running before koreader
|
# start kobo software because it was running before koreader
|
||||||
./nickel.sh &
|
./nickel.sh &
|
||||||
|
Loading…
Reference in New Issue
Block a user