prepwifi: avoid race conditions in the stupidest way imaginable

This commit is contained in:
Vasil Kolev 2019-10-29 15:59:26 +02:00 committed by root
parent a64f080071
commit bc040d106d
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ ssh -o stricthostkeychecking=no root@${ip} uptime
scp -r * root@${ip}:/ scp -r * root@${ip}:/
ssh root@${ip} "/etc/init.d/wifi-sentinel enable; /etc/init.d/odhcpd disable; /etc/init.d/dnsmasq disable; reboot" 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 while ! fping ${newip}; do sleep 5; done
ssh-keygen -R ${newip} 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" ssh -o stricthostkeychecking=no root@${newip} "opkg remove wpad-mini; opkg update && opkg install ebtables tcpdump bc iftop hostapd-openssl && reboot"