firmware/src/packages/fff/fff-support/ath79/usr/lib/fff-support/disable_poe_passthrough.sh
Adrian Schmutzler e850e221db treewide: update names for OpenWrt 20.xx
Some devices were renamed since the last stable release.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
2021-06-08 20:01:54 +02:00

13 lines
314 B
Bash
Executable File

#!/bin/sh
# This disables PoE passthrough permanently
uci -q set "fff.poe_passthrough=fff"
uci -q set "fff.poe_passthrough.active=0"
uci -q commit fff
if uci -q get "system.poe_passthrough" > /dev/null ; then
uci -q set "system.poe_passthrough.value=0"
uci -q commit system
/etc/init.d/gpio_switch restart
fi