31 lines
779 B
Diff
31 lines
779 B
Diff
--- a/ppp/Makefile
|
|
+++ b/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/ppp/files/ppp.sh
|
|
+++ b/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 pppoe.so \
|
|
${ac:+rp_pppoe_ac "$ac"} \
|
|
${service:+rp_pppoe_service "$service"} \
|