Tiny Core Extensions > TCE Tips & Tricks
Starting wifi when no Ethernet exists by script.
Rich:
Hi coreplayer2
popup TEXT will put up a dialog box containing TEXT with an OK button.
popask TEXT does the same except it contains Yes and No buttons.
Clicking Yes returns 1 and No returns 0.
coreplayer2:
ok thanks, meanwhile I've been reading fltk basics here.. though was looking for a simple box and given your description buttons may not be quite the result I had in mind. I think there was a notify, but the only notify I can find is heavy, though notify_osd is quite good looking :( I'll keep searching..
the short script now in the first post works in all scenario's started from .X.d so am happy about that. Now If I could start the script asynchronously when mc boots and in text mode, though somehow I don';t think that's possible.
coreplayer2:
You guessed it I'm sure, didn't like the verbose script, so have reverted to a single popup notification only when there are no connections available.
but I hit a temporary snag.. two actually, first is am running out of coffee, and the second is the wifi.sh script runs if wlan0 is detected even if the beacon is off, where as it shouldn't..
first the coffee..
curaga:
Perhaps you mean flnotify.tcz? 4kb with only fltk as a dep.
coreplayer2:
That's the one thanks, been looking all day for that, am going to add flnotify.tcz right now :)
btw modified code in post #4 is now working as desired at last. Am on the connected lifestyle now
Thanks for your help guys.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version