aboutsummaryrefslogtreecommitdiff
path: root/net/rp-pppoe/files/pppoe-server.default
blob: 36c9b5aab861cdf4f80f857f73b43a0575611366 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

if [ -e /etc/default/pppoe-server ]; then
	if [ -z "$(uci get pppoe.@pppoe_server[-1] 2>/dev/null)" ]; then
		uci add pppoe pppoe_server_
	fi
	uci set pppoe.@pppoe-server[-1].use_non_uci_config=1
	uci commit pppoe
fi