LinHES Forums http://forum.linhes.org/ |
|
I want 2 connect to my wireless LAN through Main Menu Option http://forum.linhes.org/viewtopic.php?f=2&t=7085 |
Page 1 of 1 |
Author: | parkinpants [ Sat Nov 26, 2005 8:48 am ] |
Post subject: | I want 2 connect to my wireless LAN through Main Menu Option |
I want to create a button on the Main Menu, or maybe the Information Centre sub-menu, that says "Connect to LAN". This I think can be done by editing /home/share/mythtv/XXX.xml. However I want it to run the following commands: iwlist wlan0 scan iwconfig wlan0 essid MYNETWORKNAME ifconfig wlan0 up dhclient wlan0 ifconfig wlan0 inet 192.168.0.2 So, how do I go about this? Can I save those commands in a text file, make it executable and then tell the XML file just to run the executable text file? Is so, how do I do this exactly? If not, is there a better way to achieve this. --- Reason for doing this is that my wireless connection is temperamental and gets cut out, it never connects on bootup using /etc/network/ method and always hangs. I want to manually connect/reconnect without going into a console or using a keyboard. |
Author: | parkinpants [ Sat Nov 26, 2005 9:23 am ] |
Post subject: | and to answer myself |
and to answer myself.... chmod 755 to make my file executable and point to it in the ACTION part via... EXEC /wireless |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |