diff options
author | Simon Rettberg | 2021-10-11 13:22:31 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-10-11 13:22:31 +0200 |
commit | 6383574aca155d18e4302974fb3e8468420236e6 (patch) | |
tree | 2ab704728605c70c98c2b74669b743fd0c796156 /core/modules/dhcpc-busybox/data | |
parent | [hardware-stats] Add threads and sockets to hw-report (diff) | |
download | mltk-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')
-rwxr-xr-x | core/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx | 3 |
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) |