You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
229 B

  1. #!/bin/sh
  2. if [ -e /etc/default/pppoe-server ]; then
  3. if [ -z "$(uci get pppoe.@pppoe_server[-1] 2>/dev/null)" ]; then
  4. uci add pppoe pppoe_server_
  5. fi
  6. uci set pppoe.@pppoe-server[-1].use_non_uci_config=1
  7. uci commit pppoe
  8. fi