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

Fix omr-bypass log

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-01-15 19:52:18 +01:00
parent a38d2c0b7b
commit 741fefed29

View file

@ -10,7 +10,7 @@ EXTRA_COMMANDS="reload_rules bypass_asn"
_add_proto() {
protoname=$1
if [ "$(dd if=/proc/net/xt_ndpi/proto bs=4096 | grep $protoname)" = "" ]; then
if [ "$(dd if=/proc/net/xt_ndpi/proto bs=4096 2> /dev/null | grep $protoname)" = "" ]; then
echo "add_custom $protoname" >/proc/net/xt_ndpi/proto
fi
hosts="$( uci -q get omr-bypass.$protoname.url )"