prepwifi: avoid race conditions in the stupidest way imaginable
This commit is contained in:
parent
a64f080071
commit
bc040d106d
|
@ -22,7 +22,9 @@ ssh -o stricthostkeychecking=no root@${ip} uptime
|
|||
scp -r * root@${ip}:/
|
||||
ssh root@${ip} "/etc/init.d/wifi-sentinel enable; /etc/init.d/odhcpd disable; /etc/init.d/dnsmasq disable; reboot"
|
||||
|
||||
sleep 3
|
||||
while ! fping ${newip}; do sleep 5; done
|
||||
|
||||
ssh-keygen -R ${newip}
|
||||
sleep 3
|
||||
|
||||
ssh -o stricthostkeychecking=no root@${newip} "opkg remove wpad-mini; opkg update && opkg install ebtables tcpdump bc iftop hostapd-openssl && reboot"
|
||||
|
|
Loading…
Reference in New Issue