mwan3: init.d/mwan3: fix GNU grep warning about stray \
authorFabian Groffen <[email protected]>
Tue, 2 Sep 2025 11:24:02 +0000 (13:24 +0200)
committerFlorian Eckert <[email protected]>
Wed, 3 Sep 2025 13:42:20 +0000 (15:42 +0200)
GNU grep complains:
  grep: warning: stray \ before :

Drop the \, confirmed with busybox grep backslash is non-significant
(the output is the same).

Closes: https://github.com/openwrt/packages/issues/25198
Signed-off-by: Fabian Groffen <[email protected]>
net/mwan3/files/etc/init.d/mwan3

index 33a1f46e5371382a07a3bdf35e975e5832f3b21a..8512af7d9e924d5951367b11ed380fd5455b5d6a 100755 (executable)
@@ -77,7 +77,7 @@ stop_service() {
                        $IP route flush table $tid &> /dev/null
                done
 
-               for rule in $($IP rule list | grep -E '^[1-3][0-9]{3}\:' | cut -d ':' -f 1); do
+               for rule in $($IP rule list | grep -E '^[1-3][0-9]{3}:' | cut -d ':' -f 1); do
                        $IP rule del pref $rule &> /dev/null
                done
                table="$($IPT -S)"