diff options
author | Judd Vinet <judd@archlinux.org> | 2003-12-30 22:23:36 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2003-12-30 22:23:36 +0000 |
commit | 4fa550ea84f951b4afe5c2e4af4aad32b7a901f6 (patch) | |
tree | 965bdee1576d8f3d0f1c7294ae4defcacfe39ae3 | |
parent | e9b62e0418df5ce6db98de36837bab2922154229 (diff) |
added a cosmetic fix to ifdown() in rc.d/network
-rwxr-xr-x | network | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |