aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/epson-printer-utility/doinst.sh2
-rw-r--r--system/epson-printer-utility/fixrm4
-rw-r--r--system/epson-printer-utility/rc.ecbd6
3 files changed, 6 insertions, 6 deletions
diff --git a/system/epson-printer-utility/doinst.sh b/system/epson-printer-utility/doinst.sh
index 4826abc83f8a2..63d08022cf374 100644
--- a/system/epson-printer-utility/doinst.sh
+++ b/system/epson-printer-utility/doinst.sh
@@ -33,7 +33,7 @@ echo
echo "************************* NOTICE *********************************"
echo "ecbd needs to be running for the printer monitor to be usable. run"
echo "/etc/rc.d/rc.ecbd restart"
-if [ x`grep "rc.ecbd start" /etc/rc.d/rc.local|wc -l` = "x0" ]; then
+if [ x$(grep "rc.ecbd start" /etc/rc.d/rc.local|wc -l) = "x0" ]; then
echo "to get it to run automatically at startup, add the following"
echo "to /etc/rc.d/rc.local"
echo "if [ -x /etc/rc.d/rc.ecbd ]; then"
diff --git a/system/epson-printer-utility/fixrm b/system/epson-printer-utility/fixrm
index e1c5c21315143..a1d58a08c91c3 100644
--- a/system/epson-printer-utility/fixrm
+++ b/system/epson-printer-utility/fixrm
@@ -11,8 +11,8 @@
FNAME="README.models"
MAXLEN=${MAXLEN:-72}
#make sure MAXLEN is a integer bigger than 39
-MAXLEN=`echo $MAXLEN|awk '($1<40) {print "40"} (int($1)>39) {print int($1) }'`
-if [ -e $FNAME ]&&[ `cat $FNAME|head -n1|awk '{print length($0)}'` -gt $MAXLEN ]; then
+MAXLEN=$(echo $MAXLEN|awk '($1<40) {print "40"} (int($1)>39) {print int($1) }')
+if [ -e $FNAME ]&&[ $(cat $FNAME|head -n1|awk '{print length($0)}') -gt $MAXLEN ]; then
#only do something if the file exists, and thefirst line is longer than it
#should be.
TMPFILE=rmtmp
diff --git a/system/epson-printer-utility/rc.ecbd b/system/epson-printer-utility/rc.ecbd
index c534fab9aa89e..80e400dcc35ac 100644
--- a/system/epson-printer-utility/rc.ecbd
+++ b/system/epson-printer-utility/rc.ecbd
@@ -9,7 +9,7 @@ PIDFILE=/var/run/ecbd.pid
OPT=${1:-start}
case "$OPT" in
'start')
- if [ `ps -A|grep ecbd|grep -v "rc.ecbd"|wc -l` -gt 0 ]||[ -e $PIDFILE ]; then
+ if [ $(ps -A|grep ecbd|grep -v "rc.ecbd"|wc -l) -gt 0 ]||[ -e $PIDFILE ]; then
echo "ecbd is already running"
else
/usr/lib/epson-backend/ecbd -p $PIDFILE &
@@ -17,13 +17,13 @@ case "$OPT" in
;;
'stop')
if [ -e /var/run/ecbd.pid ]; then
- kill `cat $PIDFILE`
+ kill $(cat $PIDFILE)
fi
rm -f $PIDFILE
;;
'restart')
if [ -e $PIDFILE ]; then
- kill `cat $PIDFILE`
+ kill $(cat $PIDFILE)
fi
rm -f $PIDFILE
/usr/lib/epson-backend/ecbd -p $PIDFILE &