summaryrefslogtreecommitdiffstats
path: root/core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
diff options
context:
space:
mode:
authorSimon Rettberg2021-10-11 13:22:31 +0200
committerSimon Rettberg2021-10-11 13:22:31 +0200
commit6383574aca155d18e4302974fb3e8468420236e6 (patch)
tree2ab704728605c70c98c2b74669b743fd0c796156 /core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
parent[hardware-stats] Add threads and sockets to hw-report (diff)
downloadmltk-6383574aca155d18e4302974fb3e8468420236e6.tar.gz
mltk-6383574aca155d18e4302974fb3e8468420236e6.tar.xz
mltk-6383574aca155d18e4302974fb3e8468420236e6.zip
[run-virt/dhcpc-busybox] Restart nat1 dhcpd if network config changes
Diffstat (limited to 'core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx')
-rwxr-xr-xcore/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx3
1 files changed, 3 insertions, 0 deletions
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)