aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/au1000/base-files/etc/diag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/au1000/base-files/etc/diag.sh')
-rw-r--r--target/linux/au1000/base-files/etc/diag.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/au1000/base-files/etc/diag.sh b/target/linux/au1000/base-files/etc/diag.sh
new file mode 100644
index 0000000..65e3011
--- /dev/null
+++ b/target/linux/au1000/base-files/etc/diag.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Copyright (C) 2007-2013 OpenWrt.org
+
+. /lib/functions/leds.sh
+
+set_state() {
+ case "$1" in
+ preinit)
+ led_off "mtx1:green"
+ led_on "mtx1:red"
+ ;;
+ failsafe)
+ led_on "mtx1:green"
+ led_on "mtx1:red"
+ ;;
+ done)
+ led_on "mtx1:green"
+ led_off "mtx1:red"
+ ;;
+ esac
+}