mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 21:47:19 +00:00
add delay for dnsmasq start
This commit is contained in:
parent
fa132925be
commit
9212bd641d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user