From b167cd316f13d67411d292c1264f50b59836bd8a Mon Sep 17 00:00:00 2001 From: OpenFest Server User Date: Tue, 11 Oct 2022 21:40:09 +0300 Subject: [PATCH] prepwifi: -t to ssh for unbuffered output --- prepwifi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prepwifi.sh b/prepwifi.sh index 2141a60..d3baba2 100644 --- a/prepwifi.sh +++ b/prepwifi.sh @@ -21,7 +21,7 @@ ssh-keygen -R ${ip} ssh -o stricthostkeychecking=no root@${ip} uptime scp -r * root@${ip}:/ 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" +ssh -t 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 while ! fping ${newip}; do sleep 5; done