From b05d29e34ac3e870c5ae384ae63545a547440dd5 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Thu, 5 Jul 2012 13:30:23 +0200 Subject: Remove unused status functions --- src/connections/bond | 8 -------- src/connections/bridge | 5 ----- src/connections/ethernet | 7 ------- src/connections/tunnel | 4 ---- src/connections/tuntap | 8 -------- src/connections/vlan | 8 -------- src/connections/wireless | 11 ----------- 7 files changed, 51 deletions(-) (limited to 'src') diff --git a/src/connections/bond b/src/connections/bond index 132225a..1166fc5 100644 --- a/src/connections/bond +++ b/src/connections/bond @@ -35,14 +35,6 @@ bond_down() { return 0 } -bond_status() { - if [[ -e "/sys/class/net/$INTERFACE" ]]; then - return 0 - else - return 1 - fi -} - bond_$1 "$2" exit $? diff --git a/src/connections/bridge b/src/connections/bridge index e134647..03b09d3 100644 --- a/src/connections/bridge +++ b/src/connections/bridge @@ -44,11 +44,6 @@ bridge_down() { return 0 } -# Returns status of profile - is it still functional? -bridge_status() { - true -} - bridge_$1 "$2" exit $? # vim: set ts=4 et sw=4: diff --git a/src/connections/ethernet b/src/connections/ethernet index ba6c7be..e9ff67f 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -260,13 +260,6 @@ ethernet_down() { return 0 } -# Returns status of profile - is it still functional? -ethernet_status() { - if ! ip link show dev "$INTERFACE" | fgrep -q "state UP"; then - return 1 - fi -} - # Stop wpa_supplicant if neccessary stop_80211x() { if checkyesno "${AUTH8021X:-no}"; then diff --git a/src/connections/tunnel b/src/connections/tunnel index 67c7d9d..e37a37c 100644 --- a/src/connections/tunnel +++ b/src/connections/tunnel @@ -31,10 +31,6 @@ tunnel_down() { return 0 } -tunnel_status() { - true -} - tunnel_$1 "$2" exit $? diff --git a/src/connections/tuntap b/src/connections/tuntap index 84b3bce..7a7f5f1 100644 --- a/src/connections/tuntap +++ b/src/connections/tuntap @@ -25,14 +25,6 @@ tuntap_down() { return 0 } -tuntap_status() { - if [[ -e "/sys/class/net/$INTERFACE" ]]; then - return 0 - else - return 1 - fi -} - tuntap_$1 "$2" exit $? # vim: set ts=4 et sw=4 tw=0: diff --git a/src/connections/vlan b/src/connections/vlan index 97147c7..acaa399 100644 --- a/src/connections/vlan +++ b/src/connections/vlan @@ -27,14 +27,6 @@ vlan_down() { return 0 } -vlan_status() { - if [[ -e "/sys/class/net/$INTERFACE" ]]; then - return 0 - else - return 1 - fi -} - vlan_$1 "$2" exit $? # vim: set ts=4 et sw=4: diff --git a/src/connections/wireless b/src/connections/wireless index e0321d4..135bec7 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -109,17 +109,6 @@ wireless_down() { fi } -# Returns status of profile - is it still functional? -wireless_status() { - load_profile "$1" - if ! wpa_check_current_essid "$INTERFACE" "$ESSID"; then - return 1 - elif ! ip link show dev "$INTERFACE" | fgrep -q "state UP"; then - return 1 - fi - -} - wireless_$1 "$2" "$3" exit $? -- cgit v1.2.3-24-g4f1b