forked from freifunk-franken/firmware
Adrian Schmutzler
84432f7bbf
This implements an upgrade safe solution for the PoE passthrough on multiple devices. Since LEDE already provides the relevant settings, a check whether those are in place enables both identification of affected devices and automatic deactivation if parameters are changed. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Tim Niemeyer <tim@tn-x.org>
10 lines
275 B
Bash
Executable File
10 lines
275 B
Bash
Executable File
#!/bin/sh
|
|
# This enables PoE passthrough so it is persistent through reboots,
|
|
# but reset after firmware upgrade
|
|
|
|
if uci -q get "system.poe_passthrough" > /dev/null ; then
|
|
uci -q set "system.poe_passthrough.value=1"
|
|
uci -q commit system
|
|
/etc/init.d/gpio_switch restart
|
|
fi
|