Skip to content
Snippets Groups Projects
Commit 55a5663b authored by David Furey's avatar David Furey
Browse files

Honour deviceinfo_disable_dhcpd flag in NetworkManager scripts

deviceinfo_disable_dhcpd only disables dhcpd during init, but it should
also be disabled in other contexts.
parent 4baacf94
No related branches found
No related tags found
No related merge requests found
Pipeline #215830 failed
......@@ -70,8 +70,13 @@ disable_tethering() {
# Restart unudhcpd and configure it similar to initfs
killall unudhcpd || true
(unudhcpd -i "$interface" -s "$host_ip" -c "$client_ip") &
logger -t nm-tethering "unudhcpd started"
if [ "$deviceinfo_disable_dhcpd" = "true" ]; then
logger -t nm-tethering "unudhcpd not started, deviceinfo_disable_dhcpd is true"
else
(unudhcpd -i "$interface" -s "$host_ip" -c "$client_ip") &
logger -t nm-tethering "unudhcpd started"
fi
# Reactivate gadget to apply changes
reactivate_gadget
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment