summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-08-10 10:02:31 +0200
committerJames Rayner <james@archlinux.org>2009-08-10 10:02:31 +0200
commit6a019f77f23fc9d214d1a1679f90606a31396184 (patch)
tree70fd698bc264131e0b814ea27bf69edf2f92ceab /src/connections/ethernet
parentf7168ae05837a24060b41511be6e4626cb26828a (diff)
downloadnetctl-6a019f77f23fc9d214d1a1679f90606a31396184.tar.gz
netctl-6a019f77f23fc9d214d1a1679f90606a31396184.tar.xz
Added basic rfkill support; prototype connection query support
Diffstat (limited to 'src/connections/ethernet')
-rw-r--r--src/connections/ethernet7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet
index e24e9f5..38b341c 100644
--- a/src/connections/ethernet
+++ b/src/connections/ethernet
@@ -124,6 +124,13 @@ ethernet_down() {
esac
}
+# 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: