diff options
-rw-r--r-- | src/connections/bond | 8 | ||||
-rw-r--r-- | src/connections/bridge | 5 | ||||
-rw-r--r-- | src/connections/ethernet | 7 | ||||
-rw-r--r-- | src/connections/tunnel | 4 | ||||
-rw-r--r-- | src/connections/tuntap | 8 | ||||
-rw-r--r-- | src/connections/vlan | 8 | ||||
-rw-r--r-- | src/connections/wireless | 11 |
7 files changed, 0 insertions, 51 deletions
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 $? |