diff options
author | James Rayner <james@archlinux.org> | 2009-10-03 13:35:18 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-10-03 13:51:54 +0200 |
commit | 8f4bd8e28b4cad92388eb3afdd3860822baa797b (patch) | |
tree | c4b302f8e7b244c4a5c5f6688d32f07c4bdfaf41 /src/network | |
parent | 57154bd0ee7056e29d4ebe4df12b477d016c95a5 (diff) | |
download | netctl-8f4bd8e28b4cad92388eb3afdd3860822baa797b.tar.gz netctl-8f4bd8e28b4cad92388eb3afdd3860822baa797b.tar.xz |
connections/ethernet: Don't incorrectly return indicating failure
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/network b/src/network index b7cd19b..bb6abf6 100644 --- a/src/network +++ b/src/network @@ -354,7 +354,7 @@ bring_interface() ip link set dev "$INTERFACE" up &>/dev/null sleep "${UP_SLEEP:-2}" ;; - down|flush) + flush) if ! ( eval $IFACE_DOWN ); then return 1 fi @@ -363,9 +363,6 @@ bring_interface() down) ip link set dev "$INTERFACE" down &>/dev/null ;; - *) - return 1 - ;; esac } |