On Monday 29 January 2018 09.01:51 Dr. Nikolaus Klepp wrote:
well, you could poll for tun0, till it appears:
tdesu <openconnect_script> &
while sleep 1; do xmessage "waiting for tun0" -timeout 1 & ip addr show
dev tun0 1>/dev/null 2>&1 && break; done
Nik
Thank you Nik. xmessage steals focus from tdesu and I can't input the
password, so I removed that.
Now I run:
tdesu <openconnect_script> &
while sleep 1; do ip addr show dev tun0 1>/dev/null 2>&1 && break;
done
and I put a zenity call in <openconnect_script>
That works quite well.
Regards,
Thierry