ath9k: allow run-time change of the chanbw debugfs file
[openwrt.git] / target / linux / adm8668 / base-files / etc / diag.sh
1 #!/bin/sh
2 # Copyright (C) 2010 OpenWrt.org
3
4 set_led() {
5 local state="$1"
6 [ -f "/proc/adm8668/sesled" ] && echo "$state" > "/proc/adm8668/sesled"
7 }
8
9 set_state() {
10 case "$1" in
11 preinit)
12 set_led 1
13 ;;
14 failsafe)
15 set_led 2
16 ;;
17 done)
18 set_led 0
19 ;;
20 esac
21 }
This page took 0.053597 seconds and 5 git commands to generate.