Archived
1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
archive/target/linux/au1000/base-files/etc/diag.sh
Florian Fainelli 18d24021c6 au1000: migrate to common led helper functions
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 35660
2013-02-18 10:37:52 +00:00

22 lines
282 B
Bash

#!/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
}