firmware/src/packages/fff/fff-support/ar71xx/usr/lib/fff-support/permanent_poe_passthrough.sh
Adrian Schmutzler 84432f7bbf fff-support: Update PoE passthrough code
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>
2017-11-12 20:28:54 +01:00

10 lines
249 B
Bash
Executable File

#!/bin/sh
# This enables PoE passthrough permanently, so it is persistent
# during firmware upgrades
uci -q set "fff.poe_passthrough=fff"
uci -q set "fff.poe_passthrough.active=1"
uci -q commit fff
/usr/lib/fff-support/activate_poe_passthrough.sh