

7 changed files with 24 additions and 25 deletions
@ -1,5 +1,7 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
|
|
||||||
for f in /tmp/dhclient.*.pid; do |
for f in /tmp/dhclient.*.pid; do |
||||||
[ "$f" != "/tmp/dhclient.*.pid" ] && kill $(cat $f) |
[ -e $f ] || continue |
||||||
|
read PID < $f; |
||||||
|
kill $PID; |
||||||
done |
done |
||||||
|
Loading…
Reference in new issue