You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.8 KiB
Plaintext
61 lines
1.8 KiB
Plaintext
4 years ago
|
#!/bin/sh
|
||
|
#
|
||
|
# Copyright (C) 2011 OpenWrt.org
|
||
|
#
|
||
|
|
||
|
. /lib/functions/uci-defaults.sh
|
||
|
. /lib/ar71xx.sh
|
||
|
|
||
|
#if no wifitoggle config exists, wifitoggle package is not installed
|
||
|
uci show wifitoggle >/dev/null || exit 1
|
||
|
|
||
|
board=$(ar71xx_board_name)
|
||
|
|
||
|
case "$board" in
|
||
|
|
||
|
dlan-hotspot)
|
||
|
uci set wifitoggle.@wifitoggle[0].led_sysfs=devolo:green:wifi
|
||
|
uci set wifitoggle.@wifitoggle[0].persistent=1
|
||
|
uci delete wifitoggle.@wifitoggle[0].timer
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_trigger
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_delayon
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_delayoff
|
||
|
;;
|
||
|
|
||
|
dlan-pro-500-wp)
|
||
|
uci set wifitoggle.@wifitoggle[0].button=BTN_2
|
||
|
uci set wifitoggle.@wifitoggle[0].led_sysfs=devolo:green:wlan-2g
|
||
|
uci set wifitoggle.@wifitoggle[0].persistent=1
|
||
|
uci delete wifitoggle.@wifitoggle[0].timer
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_trigger
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_delayon
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_delayoff
|
||
|
;;
|
||
|
|
||
|
dlan-pro-1200-ac|\
|
||
|
dlan-pro-1200-n|\
|
||
|
dlan-550-wifi)
|
||
|
uci set wifitoggle.@wifitoggle[0].led_sysfs=devolo:status:wlan
|
||
|
uci set wifitoggle.@wifitoggle[0].persistent=1
|
||
|
uci delete wifitoggle.@wifitoggle[0].timer
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_trigger
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_delayon
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_delayoff
|
||
|
;;
|
||
|
|
||
|
ew-7679wac)
|
||
|
uci set wifitoggle.@wifitoggle[0].button=_DISABLED_
|
||
|
uci set wifitoggle.@wifitoggle[0].led_sysfs=ew7679wac:blue:status
|
||
|
uci set wifitoggle.@wifitoggle[0].persistent=1
|
||
|
uci delete wifitoggle.@wifitoggle[0].timer
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_trigger
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_delayon
|
||
|
uci delete wifitoggle.@wifitoggle[0].led_enable_delayoff
|
||
|
;;
|
||
|
|
||
|
esac
|
||
|
|
||
|
uci commit wifitoggle
|
||
|
|
||
|
exit 0
|