summaryrefslogtreecommitdiffstats
path: root/src-wireless
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-09-14 05:43:48 +0200
committerJames Rayner <james@archlinux.org>2009-09-14 08:27:36 +0200
commit57bed3df9310db328d80b32b31fdefa8418bbd1e (patch)
tree29a1b3e4e3a0a2ea886cc12353869aad5f5eb34c /src-wireless
parenta02e1e0dea5172d6eb55b8e99428b5ad386d3d66 (diff)
downloadnetctl-57bed3df9310db328d80b32b31fdefa8418bbd1e.tar.gz
netctl-57bed3df9310db328d80b32b31fdefa8418bbd1e.tar.xz
Rename set_interface to bring_interface
3. Change the name of "set_interface up/down..." to "bring_interface up/down" to differentiate it from the similarly-named, merely record-keeping functions. Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src-wireless')
-rw-r--r--src-wireless/netcfg-auto-wireless8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-wireless/netcfg-auto-wireless b/src-wireless/netcfg-auto-wireless
index fe042be..3215d5c 100644
--- a/src-wireless/netcfg-auto-wireless
+++ b/src-wireless/netcfg-auto-wireless
@@ -17,11 +17,11 @@ wifi_auto()
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?
+ bring_interface up "$interface" # uses iproute methods---is it there any value to providing option to use ifconfig?
networks=$(list_networks "$interface")
if [[ -z "$networks" ]]; then
- set_interface forcedown "$interface"
+ bring_interface forcedown "$interface"
exit_fail "- No networks available."
fi
@@ -66,11 +66,11 @@ wifi_auto()
if profile_up "$found_profile"; then
exit 0
else
- set_interface forcedown "$interface"
+ bring_interface forcedown "$interface"
exit_fail "Couldn't connect profile $found_profile."
fi
else
- set_interface forcedown "$interface"
+ bring_interface forcedown "$interface"
exit_fail "No profiles matched the local networks."
fi