add delay for dnsmasq start

This commit is contained in:
Alfonso Gamboa 2022-08-18 21:39:04 -07:00
parent fa132925be
commit 9212bd641d

View File

@ -15,6 +15,8 @@ dnsmasq_launch() {
echo "#####$(basename "$0")#####" echo "#####$(basename "$0")#####"
if [[ "$ENABLE_LOCAL_DNS" == "true" ]]; then if [[ "$ENABLE_LOCAL_DNS" == "true" ]]; then
echo "wait for resolv.conf creation from iCamera"
sleep 5
dnsmasq -C /opt/wz_mini/etc/dnsmasq.conf dnsmasq -C /opt/wz_mini/etc/dnsmasq.conf
rm -f /tmp/resolv.conf rm -f /tmp/resolv.conf
cp /opt/wz_mini/etc/resolv.conf /tmp/resolv.conf cp /opt/wz_mini/etc/resolv.conf /tmp/resolv.conf