base-files: procd is now the init process
[openwrt.git] / target / linux / avr32 / base-files / etc / diag.sh
1 #!/bin/sh
2 # Copyright (C) 2013 OpenWrt.org
3
4 . /lib/functions/leds.sh
5
6 set_state() {
7         status_led="sys"
8
9         case "$1" in
10         preinit)
11                 insmod leds-gpio
12                 status_led_blink_preinit
13                 ;;
14
15         failsafe)
16                 status_led_blink_failsafe
17                 ;;
18
19         done)
20                 status_led_on
21                 ;;
22         esac
23 }