diff --git a/network/qubes-setup-dnat-to-ns b/network/qubes-setup-dnat-to-ns index 3dcbe9044..bf00891bb 100755 --- a/network/qubes-setup-dnat-to-ns +++ b/network/qubes-setup-dnat-to-ns @@ -26,7 +26,6 @@ import sys import dbus import qubesdb -from typing import List from ipaddress import IPv4Address import os diff --git a/vm-systemd/network-proxy-setup.sh b/vm-systemd/network-proxy-setup.sh index 0e20b4f59..c20001375 100755 --- a/vm-systemd/network-proxy-setup.sh +++ b/vm-systemd/network-proxy-setup.sh @@ -6,7 +6,7 @@ # Setup gateway for all the VMs this NetVM is servicing... network=$(qubesdb-read /qubes-netvm-network 2>/dev/null) -if [ "x$network" != "x" ]; then +if [ -n "${network}" ]; then if [ -e /proc/sys/kernel ] && ! [ -e /proc/sys/kernel/modules_disabled ]; then readonly modprobe_fail_cmd='true'