[viirb] include reboot to reset resolv.conf

This commit is contained in:
Nico Schottelius 2020-06-14 23:43:20 +02:00
parent eb0906ea2b
commit ad480d2e7e

View file

@ -62,7 +62,6 @@ uci set dhcp.lan.interface='lanv6'
uci set dhcp.lan.ra='server'
uci set dhcp.lan.dynamicdhcp='0'
# Fix DNS: make dnsmasq NOT use a resolv.conf
# so that it only reads from our servers with DNS64 enabled
uci set dhcp.@dnsmasq[0].noresolv='1'
@ -117,7 +116,10 @@ uci delete wireless.radio0.disabled
uci commit
/etc/init.d/network restart
# Need to reboot to restore /etc/resolv.conf
reboot
#/etc/init.d/network restart
EOF
# ensure network is up and running - bridge takes a bit of time
@ -129,7 +131,6 @@ viirb_ip=${my_lan_ip}
ping -c5 ${viirb_ip}
cat <<EOF | ssh -t "root@${viirb_ip}"
ping -c5 ungleich.ch || exit 1
# update the sources