40network/kill-dhclient.sh: kill dhclient silently

master
Harald Hoyer 2012-03-08 10:58:16 +01:00
parent 8a0d2fc56f
commit a3f00efc99
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
for f in /tmp/dhclient.*.pid; do
[ -e $f ] || continue
read PID < $f;
kill $PID;
kill $PID >/dev/null 2>&1
done

sleep 0.1
@ -13,5 +13,5 @@ sleep 0.1
for f in /tmp/dhclient.*.pid; do
[ -e $f ] || continue
read PID < $f;
kill -9 $PID;
kill -9 $PID >/dev/null 2>&1
done