aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-12-30 22:23:36 +0000
committerJudd Vinet <judd@archlinux.org>2003-12-30 22:23:36 +0000
commit4fa550ea84f951b4afe5c2e4af4aad32b7a901f6 (patch)
tree965bdee1576d8f3d0f1c7294ae4defcacfe39ae3 /network
parente9b62e0418df5ce6db98de36837bab2922154229 (diff)
downloadinitscripts-4fa550ea84f951b4afe5c2e4af4aad32b7a901f6.tar.xz
added a cosmetic fix to ifdown() in rc.d/network
Diffstat (limited to 'network')
-rwxr-xr-xnetwork3
1 files changed, 2 insertions, 1 deletions
diff --git a/network b/network
index dcc1206..dd834f7 100755
--- a/network
+++ b/network
@@ -22,7 +22,8 @@ ifdown()
varname="\$${1}"
eval new_ifline=$varname
if [ "$new_ifline" = "dhcp" ]; then
- /bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid`
+ [ -f /etc/dhcpc/dhcpcd-${1}.pid ] && \
+ /bin/kill `cat /etc/dhcpc/dhcpcd-${1}.pid`
else
/sbin/ifconfig $new_ifline down
fi