aboutsummaryrefslogtreecommitdiff
path: root/net/rp-pppoe/files/pppoe-relay.default
blob: c7a286aaa5d848ed983b8da0264472a929ac4cd4 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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