openwrt/target/linux/realtek/base-files/etc/board.d/03_gpio_switches

17 lines
207 B
Plaintext

. /lib/functions/uci-defaults.sh
board_config_update
board=$(board_name)
case "$board" in
hpe,1920-8g-poe)
ucidef_add_gpio_switch "fan_ctrl" "Fan control" "456" "0"
;;
esac
board_config_flush
exit 0