From 6383574aca155d18e4302974fb3e8468420236e6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 11 Oct 2021 13:22:31 +0200 Subject: [run-virt/dhcpc-busybox] Restart nat1 dhcpd if network config changes --- core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/modules/dhcpc-busybox') diff --git a/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx b/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx index b661633c..d6997950 100755 --- a/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx +++ b/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx @@ -247,6 +247,9 @@ case "$1" in echo "# Config written by openslx-dhcp-script (2)" >> /opt/openslx/config echo "SLX_DNS='$dns'" >> /opt/openslx/config fi + + # Rewrite nat1 dhcpd config for VMs, and restart dnsmasq if it changed + /opt/openslx/scripts/runvirt-start_dhcpd ;; deconfig) -- cgit v1.2.3-55-g7522