aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2020-06-30 17:22:10 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-30 19:01:18 +0200
commit69ca308673337b2759d5b188c8d5a4bc73405cb5 (patch)
tree0cbc37011bf6a2de87abd5f7e59b681f1adbff37 /package/network/services
parent33fae8421e3270869c645fd304523133419d7f5d (diff)
downloadupstream-69ca308673337b2759d5b188c8d5a4bc73405cb5.tar.gz
upstream-69ca308673337b2759d5b188c8d5a4bc73405cb5.tar.bz2
upstream-69ca308673337b2759d5b188c8d5a4bc73405cb5.zip
dropbear: init: replace backticks with $()
This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> [add commit description] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/network/services')
-rwxr-xr-xpackage/network/services/dropbear/files/dropbear.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/network/services/dropbear/files/dropbear.init b/package/network/services/dropbear/files/dropbear.init
index daf111fadb..ab8e908d8c 100755
--- a/package/network/services/dropbear/files/dropbear.init
+++ b/package/network/services/dropbear/files/dropbear.init
@@ -238,7 +238,7 @@ killclients()
while [ "${pid}" -ne 0 ]
do
# get parent process id
- pid=`cut -d ' ' -f 4 "/proc/${pid}/stat"`
+ pid=$(cut -d ' ' -f 4 "/proc/${pid}/stat")
[ "${pid}" -eq 0 ] && break
# check if client connection
@@ -249,14 +249,14 @@ killclients()
done
# get all server pids that should be ignored
- for server in `cat /var/run/${NAME}.*.pid`
+ for server in $(cat /var/run/${NAME}.*.pid)
do
append ignore "${server}"
done
# get all running pids and kill client connections
local skip
- for pid in `pidof "${NAME}"`
+ for pid in $(pidof "${NAME}")
do
# check if correct program, otherwise process next pid
grep -F -q -e "${PROG}" "/proc/${pid}/cmdline" || {