prepwifi: prepare for 22.03 and new VLAN setup
This commit is contained in:
parent
15509b8a3f
commit
a567fb3bdc
|
@ -20,11 +20,11 @@ fi
|
|||
ssh-keygen -R ${ip}
|
||||
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"
|
||||
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
|
||||
while ! fping ${newip}; do sleep 5; done
|
||||
ssh-keygen -R ${newip}
|
||||
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."
|
||||
|
|
Loading…
Reference in New Issue