x86/rdc: migrate to common led helper functions
[openwrt/svn-archive/archive.git] / target / linux / x86 / rdc / base-files / etc / diag.sh
1 #!/bin/sh
2 # Copyright (C) 2007-2013 OpenWrt.org
3
4 . /lib/functions/leds.sh
5
6 status_led="rdc321x:dmz"
7
8 set_state() {
9 case "$1" in
10 preinit)
11 status_led_on
12 ;;
13 done)
14 status_led_off
15 ;;
16 esac
17 }