diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-09-14 05:43:35 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-09-14 08:22:45 +0200 |
commit | 55a840edd32ac45b35c4d7c604bcfe00e0ee7fbc (patch) | |
tree | 3146bf6a577d43f91145674f397fca31064ba1a6 /src/connections | |
parent | 67f1b8fae53ebe22ad1a0557c0d7a1371b96cb0b (diff) | |
download | netctl-55a840edd32ac45b35c4d7c604bcfe00e0ee7fbc.tar.gz netctl-55a840edd32ac45b35c4d7c604bcfe00e0ee7fbc.tar.xz |
tabs->spaces, vim modelines
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/connections')
-rw-r--r-- | src/connections/ethernet | 2 | ||||
-rw-r--r-- | src/connections/ethernet-iproute | 24 | ||||
-rw-r--r-- | src/connections/ppp | 3 | ||||
-rw-r--r-- | src/connections/wireless | 2 |
4 files changed, 16 insertions, 15 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index 5414c69..8e34327 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -157,5 +157,5 @@ ethernet_status() { ethernet_$1 "$2" exit $? -# vim: set ts=4 et sw=4: +# vim: ft=sh ts=4 et sw=4: diff --git a/src/connections/ethernet-iproute b/src/connections/ethernet-iproute index 855ddb6..9da4b37 100644 --- a/src/connections/ethernet-iproute +++ b/src/connections/ethernet-iproute @@ -15,7 +15,7 @@ ethernet_up() { if ! echo "$INTERFACE" | fgrep -q ":"; then report_iproute "Interface $INTERFACE does not exist" fi - fi + fi report_debug ethernet_iproute_up ifup set_interface up "$INTERFACE" @@ -24,8 +24,8 @@ ethernet_up() { if ip link show dev "$INTERFACE" | fgrep -q "NO-CARRIER"; then report_iproute "No connection" fi - - if checkyesno "${AUTH8021X:-no}"; then + + if checkyesno "${AUTH8021X:-no}"; then . "$SUBR_DIR/8021x" [[ -z "$WPA_CONF" ]] && WPA_CONF="/etc/wpa_supplicant.conf" [[ -z "$WPA_OPTS" ]] && WPA_OPTS="-Dwired" @@ -35,25 +35,25 @@ ethernet_up() { report_fail "wpa_supplicant did not start, possible configuration error" return 1 fi - + 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" report_fail "WPA Authentication/Association Failed" return 1 - fi + fi fi case "$IP" in dhcp) - # Clear remaining pid files. + # Clear remaining pid files. rm -f "/var/run/dhcpcd-$INTERFACE".{pid,cache} >/dev/null 2>&1 # If using own dns, tell dhcpcd to NOT replace resolv.conf [[ -n "$DNS" ]] && DHCP_OPTIONS="-C resolv.conf $DHCP_OPTIONS" - - report_debug ethernet_iproute_up dhcpcd -qL -t "${DHCP_TIMEOUT:-10}" $DHCP_OPTIONS "$INTERFACE" + + report_debug ethernet_iproute_up dhcpcd -qL -t "${DHCP_TIMEOUT:-10}" $DHCP_OPTIONS "$INTERFACE" dhcpcd -qL -t "${DHCP_TIMEOUT:-10}" $DHCP_OPTIONS "$INTERFACE" 2>&1 | report_debug "$(cat)" if [[ "$PIPESTATUS" -ne 0 ]]; then report_iproute "DHCP IP lease attempt failed" @@ -80,8 +80,8 @@ ethernet_up() { if [[ -n "$IPCFG" ]]; then for line in "${IPCFG[@]}"; do - - report_debug ethernet_iproute_up ip "$line" + + report_debug ethernet_iproute_up ip "$line" if ! ip $line; then report_iproute "Could not configure interface ($line)." fi @@ -98,7 +98,7 @@ ethernet_up() { # Generate a new resolv.conf if [[ -n "$DNS" ]]; then - : >/etc/resolv.conf + : >/etc/resolv.conf [[ -n "$DOMAIN" ]] && echo "domain $DOMAIN" >>/etc/resolv.conf [[ -n "$SEARCH" ]] && echo "search $SEARCH" >>/etc/resolv.conf @@ -118,7 +118,7 @@ ethernet_down() { dhcpcd -qx "$INTERFACE" &>/dev/null fi fi - + report_debug ethernet_iproute_down if_down # ignore quirk nodown---is that appropriate? # this adds a flush call as well---is that appropriate? diff --git a/src/connections/ppp b/src/connections/ppp index ec985d4..4a9b218 100644 --- a/src/connections/ppp +++ b/src/connections/ppp @@ -22,4 +22,5 @@ ppp_down() { ppp_$1 "$2" exit $? -# vim: set ts=4 et sw=4: + +# vim: ft=sh ts=4 et sw=4: diff --git a/src/connections/wireless b/src/connections/wireless index b923b0b..0e7e274 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -235,5 +235,5 @@ wireless_status() { wireless_$1 "$2" "$3" exit $? -# vim: set ts=4 et sw=4: +# vim: ft=sh ts=4 et sw=4: |