diff options
Diffstat (limited to 'src/connections/ethernet-iproute')
-rw-r--r-- | src/connections/ethernet-iproute | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/connections/ethernet-iproute b/src/connections/ethernet-iproute index 1a4a6e4..a6c4804 100644 --- a/src/connections/ethernet-iproute +++ b/src/connections/ethernet-iproute @@ -112,6 +112,13 @@ ethernet_down() { } +# Returns status of profile - is it still functional? +ethernet_status() { + if ! ip link show dev ra0|grep -q "state UP"; then + return 1 + fi +} + ethernet_$1 $2 exit $? # vim: set ts=4 et sw=4: |