]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: kill -9 dhclient, if normal kill does not succeed
authorHarald Hoyer <harald@redhat.com>
Thu, 23 Sep 2010 14:23:33 +0000 (16:23 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 23 Sep 2010 14:26:30 +0000 (16:26 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=583348

modules.d/40network/kill-dhclient.sh

index 5d02099182f99240b2f9716c03093bb7cd322dbe..2f834c10590eff4044947bf89f7a02b7e782c9c0 100755 (executable)
@@ -7,3 +7,11 @@ for f in /tmp/dhclient.*.pid; do
     read PID < $f;
     kill $PID;
 done
+
+sleep 0.1
+
+for f in /tmp/dhclient.*.pid; do
+    [ -e $f ] || continue
+    read PID < $f;
+    kill -9 $PID;
+done