From 6a019f77f23fc9d214d1a1679f90606a31396184 Mon Sep 17 00:00:00 2001 From: James Rayner Date: Mon, 10 Aug 2009 18:02:31 +1000 Subject: Added basic rfkill support; prototype connection query support --- src/connections/ethernet | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/connections/ethernet') 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: -- cgit v1.2.3-24-g4f1b