mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
Support user to control PSE on/off (chip: tps23861) via ucentral config file. Use uci-default to write poe's uci default file. Fixes: WIFI-14724 Signed-off-by: jackcybertan <jack.tsai@cybertan.com.tw>
20 lines
319 B
Bash
20 lines
319 B
Bash
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
board=$(board_name)
|
|
case $board in
|
|
sonicfi,rap630w-311g|\
|
|
cybertan,eww631-b1)
|
|
for num in $(seq 1 3)
|
|
do
|
|
uci add poe port
|
|
uci set poe.@port[-1]='port'
|
|
eval uci set poe.@port[-1].port_num='${num}'
|
|
uci set poe.@port[-1].admin_mode='1'
|
|
done
|
|
uci commit
|
|
;;
|
|
*)
|
|
;;
|
|
esac |