From ba0c61b032e4fabd2962621c2444671954c33a3e Mon Sep 17 00:00:00 2001 From: 3np <3np@example.com> Date: Sat, 5 Jul 2025 01:37:10 +0000 Subject: [PATCH 1/2] chore(qubes-setup-dnat-to-ns): remove unused import --- network/qubes-setup-dnat-to-ns | 1 - 1 file changed, 1 deletion(-) 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 From 9311abb44773a07a24db81a2d92f61c73480e36d Mon Sep 17 00:00:00 2001 From: 3np <3np@example.com> Date: Sat, 5 Jul 2025 02:38:15 +0000 Subject: [PATCH 2/2] chore: use -n for empty-var-checks in shell --- vm-systemd/network-proxy-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'