diff --git a/SD_ROOT/wz_mini/etc/network.d/S09dnsmasq b/SD_ROOT/wz_mini/etc/network.d/S09dnsmasq index dc98165..1c72a31 100644 --- a/SD_ROOT/wz_mini/etc/network.d/S09dnsmasq +++ b/SD_ROOT/wz_mini/etc/network.d/S09dnsmasq @@ -28,9 +28,10 @@ dnsmasq_launch() { else /opt/wz_mini/bin/dnsmasq -C /opt/wz_mini/etc/dnsmasq.conf fi - sleep 3 - rm -f /tmp/resolv.conf - cp /opt/wz_mini/etc/resolv.conf /tmp/resolv.conf + sleep 5 + #mount the resolv.conf file as read only. Something (ICamera?) randomly seems to change it. + mount --bind /opt/wz_mini/etc/resolv.conf /tmp/resolv.conf + mount -o bind,remount,ro /tmp/resolv.conf echo "dnsmasq enabled" fi }