From 2e0232ccf156498b81c06044890e59fb4a6b7943 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Sun, 13 Sep 2009 23:43:38 -0400 Subject: Returns and exits * add some abortive returns * some exit tweaks Signed-off-by: Jim Pryor --- src-wireless/netcfg-auto-wireless | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-wireless') diff --git a/src-wireless/netcfg-auto-wireless b/src-wireless/netcfg-auto-wireless index 7bb8dbb..f2b934a 100644 --- a/src-wireless/netcfg-auto-wireless +++ b/src-wireless/netcfg-auto-wireless @@ -14,7 +14,7 @@ wifi_auto() [[ -f "$IFACE_DIR/$interface" ]] && source "$IFACE_DIR/$interface" if [[ -n "$RFKILL" ]]; then - set_rf_state "$interface" up + set_rf_state "$interface" up || exit $? fi set_interface up "$interface" # uses iproute methods---is it there any value to providing option to use ifconfig? -- cgit v1.2.3-24-g4f1b