summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkeye <postfach@martinmichel.info>2011-01-22 18:40:27 (GMT)
committerDarkeye <postfach@martinmichel.info>2011-01-22 18:40:27 (GMT)
commit89116fd09a38af4d271acec5cd0169ead3d20a29 (patch)
tree2b324a5ddda4c9a088e91407f9f928335a35f921
parent5474eb6f62b1c643a4d6d5bb1d6e3f4f418e76fd (diff)
Blue LED if WAN is up on gateway
-rw-r--r--files/etc/hotplug.d/iface/22-wan_led9
1 files changed, 9 insertions, 0 deletions
diff --git a/files/etc/hotplug.d/iface/22-wan_led b/files/etc/hotplug.d/iface/22-wan_led
new file mode 100644
index 0000000..bee5e9e
--- /dev/null
+++ b/files/etc/hotplug.d/iface/22-wan_led
@@ -0,0 +1,9 @@
+#!/bin/sh
+case "${ACTION:-ifup}" in
+ ifup)
+ gpioctl set 1
+ ;;
+ ifdown)
+ gpioctl dirout 1
+ ;;
+esac
contact: Jan Huwald // Impressum