prepwifi: updated for 2022/owrt22
This commit is contained in:
parent
a9e63711d4
commit
a133781ab1
|
@ -20,7 +20,8 @@ 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} "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"
|
now=`date +%s`
|
||||||
|
ssh root@${ip} "date -s @$now; cp /etc/resolv.conf /tmp/resolv.conf.old ; echo 'nameserver 8.8.8.8' > /etc/resolv.conf; 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; mv /tmp/resolv.conf /etc/resolv.conf; reboot"
|
||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
while ! fping ${newip}; do sleep 5; done
|
while ! fping ${newip}; do sleep 5; done
|
||||||
|
|
Loading…
Reference in New Issue