vif-route-qubes: Check that the -e flag is set
This commit is contained in:
parent
a8588c4e9c
commit
9840953f5f
@ -134,6 +134,11 @@ if [ -n "$appvm_ip" ] && [ -n "$appvm_gw_ip" ] && [ "$appvm_ip" != "$netvm_ip" ]
|
|||||||
. "$dir/vif-qubes-nat.sh"
|
. "$dir/vif-qubes-nat.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $- in
|
||||||
|
(*e*) :;;
|
||||||
|
(*) echo '-e not set'>&2; exit 1;;
|
||||||
|
esac
|
||||||
|
|
||||||
# add anti-spoofing rules before enabling the interface
|
# add anti-spoofing rules before enabling the interface
|
||||||
if [ "${ip}" ]; then
|
if [ "${ip}" ]; then
|
||||||
# If we’ve been given a list of IP addresses, then add routes from us to
|
# If we’ve been given a list of IP addresses, then add routes from us to
|
||||||
|
Loading…
Reference in New Issue
Block a user