1600464da48aa6b8bd8cc03a23a81ef98b0b3353
[openwrt.git] / target / linux / kirkwood / base-files / etc / uci-defaults / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2012-2013 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 case "`cat /proc/device-tree/model`" in
9 "Seagate FreeAgent Dockstar")
10         ucidef_set_led_default "health" "status:green:health" "1"
11         ucidef_set_led_default "fault" "status:orange:fault" "1"
12         ;;
13 "Cloud Engines Pogoplug E02")
14         ucidef_set_led_default "health" "status:green:health" "1"
15         ucidef_set_led_default "fault" "status:orange:fault" "1"
16         ;;
17 *)
18         ;;
19 esac
20
21 ucidef_commit_leds
22
23 exit 0