File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -379,9 +379,9 @@ _is_vnet_up()
379
379
return 1 # false
380
380
elif [ ! -c /dev/pf ]; then
381
381
return 1 # false
382
- elif pfctl -s Anchors | grep -q -F ' ^[ \t]*pot-nat$' ; then
382
+ elif ! pfctl -s Anchors | grep -q ' ^[ \t]*pot-nat$' ; then
383
383
return 1 # false
384
- elif pfctl -s Anchors | grep -q -F ' ^[ \t]*pot-rdr$' ; then
384
+ elif ! pfctl -s Anchors | grep -q ' ^[ \t]*pot-rdr$' ; then
385
385
return 1 # false
386
386
elif [ -z " $( pfctl -s nat -a pot-nat) " ]; then
387
387
return 1 # false
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ pot-vnet-start()
74
74
# load pf module
75
75
kldload -n pf
76
76
# check anchors
77
- if pfctl -s Anchors | grep -q -F ' ^[ \t]*pot-nat$' ||
78
- pfctl -s Anchors | grep -F ' ^[ \t]*pot-rdr$' ; then
77
+ if ! pfctl -s Anchors | grep -q ' ^[ \t]*pot-nat$' ||
78
+ ! pfctl -s Anchors | grep -q ' ^[ \t]*pot-rdr$' ; then
79
79
_debug " Pot anchors are missing - load pf.conf"
80
80
pfctl -f pf.conf
81
81
fi
You can’t perform that action at this time.
0 commit comments