tunneldigger: fix coding style of stop()
This commit is contained in:
parent
4a4d2c1eae
commit
6ce2fc4c73
@ -53,8 +53,8 @@ start() {
|
||||
|
||||
stop() {
|
||||
for PIDFILE in `find ${PIDPATH}/ -name "tunneldigger\.*\.pid"`; do
|
||||
PID=`cat ${PIDFILE}`
|
||||
IFACE=`echo ${PIDFILE} | awk -F\/tunneldigger '{print $2}' | cut -d'.' -f2`
|
||||
PID="$(cat ${PIDFILE})"
|
||||
IFACE="$(echo ${PIDFILE} | awk -F\/tunneldigger '{print $2}' | cut -d'.' -f2)"
|
||||
echo "Stopping tunneldigger for interface ${IFACE}"
|
||||
start-stop-daemon -K -q -p $PIDFILE
|
||||
while test -d "/proc/${PID}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user