#!/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

