packages/net/rp-pppoe/files/pppoe-relay.default
Daniel Dickinson 847706ba5a rp-pppoe: Add back from oldpackages with build fixes and enhanced packaging
Add back from oldpackages with fixes for build errors and UCIfication
(for LuCI app submitted in a related PR (against LuCI repo)).

NOTE: Untested packages have been marked with @BROKEN.  This can
be undone of others report success with the sniffer

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
2016-05-23 04:19:19 -04:00

10 lines
224 B
Bash

#!/bin/sh
if [ -e /etc/default/pppoe-relay ]; then
if [ -z "$(uci get pppoe.@pppoe_relay[-1] 2>/dev/null)" ]; then
uci add pppoe pppoe_relay
fi
uci set pppoe.@pppoe-relay[-1].use_non_uci_config=1
uci commit pppoe
fi