mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Removed some bashisms
This commit is contained in:
@@ -35,7 +35,7 @@ if pkill -0 nickel ; then
|
||||
FROM_NICKEL="true"
|
||||
fi
|
||||
|
||||
if [ "${FROM_NICKEL}" == "true" ] ; then
|
||||
if [ "${FROM_NICKEL}" = "true" ] ; then
|
||||
# Detect if we were started from KFMon
|
||||
FROM_KFMON="false"
|
||||
if pkill -0 kfmon ; then
|
||||
@@ -45,7 +45,7 @@ if [ "${FROM_NICKEL}" == "true" ] ; then
|
||||
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...
|
||||
for env in $(xargs -n 1 -0 < /proc/$(pidof nickel)/environ) ; do
|
||||
export ${env}
|
||||
@@ -75,7 +75,7 @@ fi
|
||||
if [ "$#" -eq 0 ] ; then
|
||||
args="/mnt/onboard"
|
||||
else
|
||||
args="$@"
|
||||
args="$*"
|
||||
fi
|
||||
|
||||
# check whether PLATFORM & PRODUCT have a value assigned by rcS
|
||||
@@ -93,7 +93,7 @@ if [ ! -n "${PLATFORM}" ] ; then
|
||||
PLATFORM="${CPU}-ntx"
|
||||
fi
|
||||
|
||||
if [ "${PLATFORM}" == "freescale" ] ; then
|
||||
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"
|
||||
@@ -113,7 +113,7 @@ fi
|
||||
|
||||
./reader.lua "${args}" > crash.log 2>&1
|
||||
|
||||
if [ "${FROM_NICKEL}" == "true" ] ; then
|
||||
if [ "${FROM_NICKEL}" = "true" ] ; then
|
||||
if [ "${FROM_KFMON}" != "true" ] ; then
|
||||
# start kobo software because it was running before koreader
|
||||
./nickel.sh &
|
||||
|
||||
Reference in New Issue
Block a user