summaryrefslogtreecommitdiff
path: root/target/linux/au1000/base-files/etc/diag.sh
blob: 65e3011be527894fa8336c4dcaa1d0c1cc3fe4f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}