projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c395f1d
)
kill dhclient if pid was found
author
Harald Hoyer
<harald@redhat.com>
Mon, 18 May 2009 12:07:34 +0000
(14:07 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 18 May 2009 12:07:34 +0000
(14:07 +0200)
modules.d/40network/kill-dhclient.sh
patch
|
blob
|
history
diff --git
a/modules.d/40network/kill-dhclient.sh
b/modules.d/40network/kill-dhclient.sh
index
d519013
..
70deda6
100755
(executable)
--- a/
modules.d/40network/kill-dhclient.sh
+++ b/
modules.d/40network/kill-dhclient.sh
@@
-1,4
+1,4
@@
#!/bin/sh
pid=$(pidof dhclient)
-[
[ $pid ]
] && kill $pid
+[
-n "$pid"
] && kill $pid