diff options
author | James Rayner <james@archlinux.org> | 2009-08-10 10:02:31 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-08-10 10:02:31 +0200 |
commit | 6a019f77f23fc9d214d1a1679f90606a31396184 (patch) | |
tree | 70fd698bc264131e0b814ea27bf69edf2f92ceab /src/connections/ethernet-iproute | |
parent | f7168ae05837a24060b41511be6e4626cb26828a (diff) | |
download | netctl-6a019f77f23fc9d214d1a1679f90606a31396184.tar.gz netctl-6a019f77f23fc9d214d1a1679f90606a31396184.tar.xz |
Added basic rfkill support; prototype connection query support
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: |