ppp: revert change

This commit is contained in:
CN_SZTL 2020-07-25 00:17:28 +08:00
parent 04c3a61962
commit 58c1cd2e4b
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -233,8 +233,8 @@ proto_pppoe_setup() {
#By 蝈蝈:并发拨号同步的前期准备
syncppp_option=""
[ "$(uci get syncdial.config.enabled)" == "1" ] && {
ppp_if_cnt=$(cat /etc/config/network | grep -c "proto 'pppoe'")
[ "$(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
}