From 8643d38a681df3ea01e920a8773ddfd7bf7df0fa Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Fri, 6 May 2016 18:51:10 +0200 Subject: [PATCH] Removed some bashisms --- platform/kobo/koreader.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/kobo/koreader.sh b/platform/kobo/koreader.sh index 5000f7554..9647f3dc8 100755 --- a/platform/kobo/koreader.sh +++ b/platform/kobo/koreader.sh @@ -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 &