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.
64 lines
1.1 KiB
Bash
64 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2015 devolo AG
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/ar71xx.sh
|
|
|
|
board=$(ar71xx_board_name)
|
|
|
|
case "$board" in
|
|
devolo-home-control-cu)
|
|
ucidef_set_button "BTN_0" "dLAN button"
|
|
ucidef_set_button "BTN_1" "Home Control button"
|
|
;;
|
|
|
|
dlan-pro-500-wp)
|
|
# TODO
|
|
;;
|
|
|
|
dlan-550-wifi)
|
|
ucidef_set_button "BTN_0" "dLAN button"
|
|
ucidef_set_button "BTN_2" "WiFi button"
|
|
ucidef_set_button "reset" "Reset button"
|
|
;;
|
|
|
|
dlan-1000-ac)
|
|
ucidef_set_button "BTN_0" "dLAN button"
|
|
ucidef_set_button "BTN_2" "WiFi button"
|
|
ucidef_set_button "reset" "Reset button"
|
|
;;
|
|
|
|
dlan-hotspot|\
|
|
dlan-pro-1200-ac|\
|
|
dlan-pro-1200-n)
|
|
ucidef_set_button "BTN_0" "dLAN button"
|
|
ucidef_set_button "BTN_2" "WiFi button"
|
|
ucidef_set_button "reset" "Reset button"
|
|
;;
|
|
|
|
dvl-1200e|\
|
|
dvl-1200i|\
|
|
dvl-1750c|\
|
|
dvl-1750i|\
|
|
dvl-1750x)
|
|
ucidef_set_button "reset" "Reset button"
|
|
;;
|
|
dvl-1750e)
|
|
## Eject and WiFi button disabled until they have a function
|
|
#ucidef_set_button "BTN_0" "USB Eject"
|
|
#ucidef_set_button "BTN_2" "WiFi button"
|
|
ucidef_set_button "reset" "Reset button"
|
|
;;
|
|
|
|
ap151)
|
|
ucidef_set_button "wps" "WiFi button"
|
|
;;
|
|
|
|
esac
|
|
|
|
ucidef_commit_buttons
|
|
|
|
exit 0
|