I have produced a small script that allows you to start up a wireless connection.
...
I very much like this idea of tiny dialog-based gui wrapper around wireless_tools. There are some full blown guis to do this, but they often depends on qt, gtk2, python,etc... nothing really mini.
Couple of suggestions:
1) If there is only one wireless device available, as is the often the case, then perhaps do not show the device dialog (on the other hand, selected device could be shown the wireless access point dialog)
2) iwlist scan return information wether the access point is encrypted and about the signal quality. I think those two info would be important to also show in the selection list somehow
what is the best way to check if X is running or not?
you could use a function like this:
isxwin() {
# return 0 if started under x-window, 1 otherwise
[ -z "$DISPLAY" ] && return 1
[ -n "$WINDOWID" ] && return 0
case "$TERM" in xterm*|rxvt) return 0;; esac
return 1
}
Personally, I'm not disturbed with running text-based applications in X. So I like dialog!
Also on a (personal) aesthetic point of view, I much prefer the default "traditional" look'n feel for dialog (with grey panels on blue background and apparent shadow for the widgets) than the appearance included in TC base. So I just "rm /etc/dialogrc" (in my /opt/bootlocal.sh) and now my dialogs-based interface look much better.
BR, Florian