| The Following User Says Thank You to fiferboy For This Useful Post: | ||
runscript="/tmp/.runscript_$USER"This allows the shell running under osso-xterm to find the script it is to run. I.e. the script is in the /tmp directory. As soon as it is recognized, it is renamed to avoid duplicate invocations. Once the script completes, this code leaves the screen up for 10 seconds so you can read the results, and then kills the osso-xterm (the parent process).
myscript="/tmp/.myscript_$$"
if [ -f $runscript ]
thenmv $runscript $myscriptfi
sh $myscript
rm $myscript
sleep 10
kill $PPID
#!/bin/shWith that, you get a single xterminal running with one toolbar where you can interact with the script. Once complete, it exits automatically.
#
# Wired ethernet start
#
echo sudo /home/user/startEth0 > /tmp/.runscript_user
osso-xterm
dbus-send --system /com/nokia/icd_ui com.nokia.icd_ui.show_disconnect_dlg

| The Following User Says Thank You to fiferboy For This Useful Post: | ||