summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-11-29 02:47:17 +0100
committerJames Rayner <james@archlinux.org>2009-12-03 21:28:32 +0100
commitdd98055d7c260a0612991e93323e816c121b1968 (patch)
tree54569b61972fabd085f87222ea16d6b3596ea05d
parente9875e80160831253b58937f8fb0f4e39faa6ca9 (diff)
downloadnetctl-dd98055d7c260a0612991e93323e816c121b1968.tar.gz
netctl-dd98055d7c260a0612991e93323e816c121b1968.tar.xz
connections/wireless: is_interface needed quotes, and wasn't exiting on failure
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
-rw-r--r--src/connections/wireless2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections/wireless b/src/connections/wireless
index 638b51b..5c9091a 100644
--- a/src/connections/wireless
+++ b/src/connections/wireless
@@ -69,7 +69,7 @@ wireless_up() {
enable_rf || return 1
# Check if interface exists
- is_interface $INTERFACE || report_fail "interface $INTERFACE does not exist"
+ is_interface "$INTERFACE" || { report_fail "interface $INTERFACE does not exist"; return 1; }
# Kill any lingering wpa_supplicants.
report_debug wireless_up stop_wpa "$INTERFACE"