]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 d519013df397abbd69bdc96e2f28ee98a7031295..70deda68e904d7127cd28ab64389b1e092e518ed 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 
 pid=$(pidof dhclient)
-[[ $pid ]] && kill $pid
+[ -n "$pid" ] && kill $pid