diff --git a/network/vif-qubes-nat.sh b/network/vif-qubes-nat.sh index 2789d34..672f407 100755 --- a/network/vif-qubes-nat.sh +++ b/network/vif-qubes-nat.sh @@ -35,7 +35,12 @@ function run function netns { - run ip netns exec "$netns" "$@" + if [[ "$1" = 'ip' ]]; then + shift + run ip -n "$netns" "$@" + else + run ip netns exec "$netns" "$@" + fi } run ip addr flush dev "$netns_appvm_if"