ppp: syncppp: fix grep's regex match (#4609)

This commit is contained in:
Chuck 2020-05-15 20:10:48 +08:00 committed by GitHub
parent e48e438b08
commit 8f9bc86de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,7 @@ proto_pppoe_setup() {
#By 蝈蝈:并发拨号同步的前期准备
syncppp_option=""
[ "$(uci get syncdial.config.enabled)" == "1" ] && {
ppp_if_cnt=$(cat /etc/config/network | grep -c "proto 'pppoe'")
ppp_if_cnt=$(cat /etc/config/network | grep -E -c "proto\s+?'pppoe'")
syncppp_option="syncppp $ppp_if_cnt"
shellsync $ppp_if_cnt 10
}