diff options
author | Darkeye <postfach@martinmichel.info> | 2011-01-22 18:40:27 (GMT) |
---|---|---|
committer | Darkeye <postfach@martinmichel.info> | 2011-01-22 18:40:27 (GMT) |
commit | 89116fd09a38af4d271acec5cd0169ead3d20a29 (patch) | |
tree | 2b324a5ddda4c9a088e91407f9f928335a35f921 /files | |
parent | 5474eb6f62b1c643a4d6d5bb1d6e3f4f418e76fd (diff) |
Blue LED if WAN is up on gateway
Diffstat (limited to 'files')
-rw-r--r-- | files/etc/hotplug.d/iface/22-wan_led | 9 |
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 |