From a567fb3bdc2e06d518b9e27e0e295abcf6dce47e Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Sun, 2 Oct 2022 17:16:12 +0300 Subject: [PATCH] prepwifi: prepare for 22.03 and new VLAN setup --- prepwifi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."