1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix no output redirection in some openmptcprouter scripts

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-07-04 10:48:01 +02:00
parent 60f552fd68
commit c1f7c7d935
4 changed files with 20 additions and 20 deletions

View file

@ -59,7 +59,7 @@ else
fi
if [ -n "$(nft list set inet fw4 omr_dst_bypass_all_4 2>/dev/null)" ]; then
for ip in $hostip; do
nft add element inet fw4 omr_dst_bypass_all_4 { $ip } 2>&1 >/dev/null
nft add element inet fw4 omr_dst_bypass_all_4 { $ip } >/dev/null 2>&1
done
fi
if [ "$FASTTEST" = true ]; then
@ -75,7 +75,7 @@ else
fi
if [ -n "$(nft list set inet fw4 omr_dst_bypass_all_4 2>/dev/null)" ]; then
for ip in $hostip; do
nft delete element inet fw4 omr_dst_bypass_all_4 { $ip } 2>&1 >/dev/null
nft delete element inet fw4 omr_dst_bypass_all_4 { $ip } >/dev/null 2>&1
done
fi
/etc/init.d/sqm start $INTERFACE