kill dhclient if pid was found
authorHarald Hoyer <harald@redhat.com>
Mon, 18 May 2009 12:07:34 +0000 (14:07 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 18 May 2009 12:07:34 +0000 (14:07 +0200)
modules.d/40network/kill-dhclient.sh

index d519013..70deda6 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 
 pid=$(pidof dhclient)
-[[ $pid ]] && kill $pid
+[ -n "$pid" ] && kill $pid