diff --git a/prepwifi.sh b/prepwifi.sh index 2b36d64..18c02b0 100644 --- a/prepwifi.sh +++ b/prepwifi.sh @@ -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."