packages
packages copied to clipboard
mwan3: `grep: warning: stray \ before :` when using gnu grep
Maintainer: @feckert Environment: x86-64 OpenWrt SNAPSHOT, r27897-b27075e12b mwan 2.11.16-r4 grep 3.11-r1 Description: Something is wrong with mwan3 script when using with GNU grep instead of busybox
Repro:
- install gnu grep by
opkg install grep - run
service mwan3 restart - Boom! Warning is printed when service is restarted
grep: warning: stray \ before :
grep: warning: stray \ before :
Work around solution: go back to busybox grep
Hi,
I looked in your issue.
Could you please test in your /etc/init.d/mwan3 if changing line 80:
for rule in $($IP rule list | grep -E '^[1-3][0-9]{3}\:' | cut -d ':' -f 1); do to for rule in $($IP rule list | grep -E '^[1-3][0-9]{3}:' | cut -d ':' -f 1); do fixes the problem?