summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet-iproute
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/connections/ethernet-iproute
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/connections/ethernet-iproute')
-rw-r--r--src/connections/ethernet-iproute8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/connections/ethernet-iproute b/src/connections/ethernet-iproute
index 9da4b37..088d25b 100644
--- a/src/connections/ethernet-iproute
+++ b/src/connections/ethernet-iproute
@@ -4,7 +4,7 @@
report_iproute()
{
report_fail "$*"
- set_interface down "$INTERFACE"
+ bring_interface down "$INTERFACE"
exit 1
}
@@ -18,7 +18,7 @@ ethernet_up() {
fi
report_debug ethernet_iproute_up ifup
- set_interface up "$INTERFACE"
+ bring_interface up "$INTERFACE"
if ip link show dev "$INTERFACE" | fgrep -q "NO-CARRIER"; then
@@ -39,7 +39,7 @@ ethernet_up() {
if ! wpa_check "$INTERFACE"; then
# ignore quirk nodown---is that appropriate? or should we just use report_iproute?
# this adds a flush call as well---is that appropriate?
- set_interface forcedown "$INTERFACE"
+ bring_interface forcedown "$INTERFACE"
report_fail "WPA Authentication/Association Failed"
return 1
fi
@@ -122,7 +122,7 @@ ethernet_down() {
report_debug ethernet_iproute_down if_down
# ignore quirk nodown---is that appropriate?
# this adds a flush call as well---is that appropriate?
- set_interface forcedown "$INTERFACE"
+ bring_interface forcedown "$INTERFACE"
}