ppp: syncppp: fix grep's regex match (#4609)
This commit is contained in:
parent
e48e438b08
commit
8f9bc86de1
@ -234,7 +234,7 @@ proto_pppoe_setup() {
|
|||||||
#By 蝈蝈:并发拨号同步的前期准备
|
#By 蝈蝈:并发拨号同步的前期准备
|
||||||
syncppp_option=""
|
syncppp_option=""
|
||||||
[ "$(uci get syncdial.config.enabled)" == "1" ] && {
|
[ "$(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"
|
syncppp_option="syncppp $ppp_if_cnt"
|
||||||
shellsync $ppp_if_cnt 10
|
shellsync $ppp_if_cnt 10
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user