pistachio: use vendor_model scheme for device/image name
[openwrt/staging/stintel.git] / target / linux / pistachio / base-files / etc / diag.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2017 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 . /lib/functions/leds.sh
10
11 status_led="marduk:red:heartbeat"
12
13 set_state() {
14
15 case "$1" in
16 preinit)
17 status_led_blink_preinit
18 ;;
19 failsafe)
20 status_led_blink_failsafe
21 ;;
22 upgrade | \
23 preinit_regular)
24 status_led_blink_preinit_regular
25 ;;
26 done)
27 status_led_on
28 ;;
29 esac
30 }