summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet
diff options
context:
space:
mode:
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: