prepwifi: prepare for 22.03 and new VLAN setup

This commit is contained in:
Vasil Kolev 2022-10-02 17:16:12 +03:00
parent 15509b8a3f
commit a567fb3bdc
1 changed files with 2 additions and 2 deletions

View File

@ -20,11 +20,11 @@ fi
ssh-keygen -R ${ip} ssh-keygen -R ${ip}
ssh -o stricthostkeychecking=no root@${ip} uptime 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} "ip r replace default via 192.168.1.99; opkg remove wpad-basic-wolfssl; && opkg update && opkg install ebtables tcpdump bc iftop wpad-openssl collectd collectd-mod-iwinfo collectd-mod-interface collectd-mod-cpu collectd-mod-exec collectd-mod-load collectd-mod-memory collectd-mod-network ip-bridge ; /etc/init.d/wifi-sentinel enable; /etc/init.d/odhcpd disable; /etc/init.d/dnsmasq disable; reboot"
sleep 3 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 sleep 3
ssh -o stricthostkeychecking=no root@${newip} "opkg remove wpad-mini; opkg remove wpad;opkg remove wpad-basic; opkg update && opkg install ebtables tcpdump bc iftop hostapd-openssl collectd collectd-mod-iwinfo collectd-mod-interface collectd-mod-cpu collectd-mod-exec collectd-mod-load collectd-mod-memory collectd-mod-network && reboot" ssh -o stricthostkeychecking=no root@${newip} "echo All done."