diff options
author | Tom Gundersen <teg@jklm.no> | 2012-07-18 17:57:56 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-07-18 18:02:27 +0200 |
commit | 800117c41a2a188a69a32ff5ce8eddb8c67bd0c6 (patch) | |
tree | b18682cafdb8f8ea0a118b32cc4a9c758f80a858 /network | |
parent | ecc8af27039c9174301b9eb94884ccf56f00b33a (diff) |
network: don't check for existence of if on net_down
In the absence of an interface, dhcpcd will do the right thing. Or ip will complain.
Diffstat (limited to 'network')
-rwxr-xr-x | network | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -34,9 +34,7 @@ network_up() { } network_down() { - have_interface "$interface" || return 1 - - if [[ -f /run/dhcpcd-$interface.pid ]]; then + if [[ ! -n $address ]] && [[ -f /run/dhcpcd-$interface.pid || -f /run/dhcpcd.pid ]]; then dhcpcd -qk $interface || return 1 else ip addr flush dev $interface || return 1 |