summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-10-03 13:35:18 +0200
committerJames Rayner <james@archlinux.org>2009-10-03 13:51:54 +0200
commit8f4bd8e28b4cad92388eb3afdd3860822baa797b (patch)
treec4b302f8e7b244c4a5c5f6688d32f07c4bdfaf41 /src
parent57154bd0ee7056e29d4ebe4df12b477d016c95a5 (diff)
downloadnetctl-8f4bd8e28b4cad92388eb3afdd3860822baa797b.tar.gz
netctl-8f4bd8e28b4cad92388eb3afdd3860822baa797b.tar.xz
connections/ethernet: Don't incorrectly return indicating failure
Diffstat (limited to 'src')
-rw-r--r--src/connections/ethernet1
-rw-r--r--src/network5
2 files changed, 2 insertions, 4 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index a0641d0..7265f40 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -148,6 +148,7 @@ ethernet_down() {
else
bring_interface down "$INTERFACE"
fi
+ return 0
}
# Returns status of profile - is it still functional?
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
}