if tor browser is started before wlan0 is connected, it hangs at connecting gui and wont go further even in wlan0 subsequently connects
so this is code which i am fairly sure will work to start tor browser only after wlan0 is connected
until [ $HIIP -lt 0 ]; do
echo -n " : HIone " $HIIP
egrep -o $RegExStr "/tmp/Test.txt" > /tmp/Test2.txt
while read p; do
echo -n "test is qnow" $TEST
if [ $TEST ]; then tor-browser & exit
echo -n " : HItwo" $HIIP
echo -n " :X is " $X
this writing files to /tmp sucks but it is the only way i know how to deal with multi line output in bash. it doesnt keep checking for the wlan0 connection past a reasonable time interval
has to be made executable and put into /root/Startup
sometimes wlan0 connects then disconnects before tor browser can get its act together. if this happens you will still need to close tor connect gui and then start tor again.
if wlan0 goes down after tor browser has opened completely, tor browser doesnt need to be restarted. just wait for wifi to reconnect.