123456789101112131415161718192021222324252627282930 |
- --- a/package/network/services/ppp/Makefile
- +++ b/package/network/services/ppp/Makefile
- @@ -39,7 +39,7 @@ endef
-
- define Package/ppp
- $(call Package/ppp/Default)
- - DEPENDS:=+kmod-ppp
- + DEPENDS:=+kmod-ppp +libpthread +shellsync +kmod-mppe
- TITLE:=PPP daemon
- VARIANT:=default
- endef
- --- a/package/network/services/ppp/files/ppp.sh
- +++ b/package/network/services/ppp/files/ppp.sh
- @@ -233,7 +233,15 @@ proto_pppoe_setup() {
- json_get_var padi_attempts padi_attempts
- json_get_var padi_timeout padi_timeout
-
- + syncppp_option=""
- + [ "$(uci get syncdial.config.enabled)" -eq "1" ] && {
- + ppp_if_cnt=$(uci show network | grep -c "\.proto=\'pppoe\'$")
- + syncppp_option="syncppp $ppp_if_cnt"
- + shellsync $ppp_if_cnt 10
- + }
- +
- ppp_generic_setup "$config" \
- + $syncppp_option \
- plugin rp-pppoe.so \
- ${ac:+rp_pppoe_ac "$ac"} \
- ${service:+rp_pppoe_service "$service"} \
|