aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2024-07-14 18:25:07 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-20 08:09:02 +0700
commit4a28157d1cf18920b998b8a88e87570958b1d9b6 (patch)
tree6c7a775fb9154f26a7117aefa373cdbdd9f76a85 /system
parentab1f140d3bfc6bc12122c4c02e7bdf3376cbd9d7 (diff)
system/epson-printer-utility: Replaced backtick cmdsub
Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 &