View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Nov 26, 2005 8:48 am 
Offline
Joined: Sun Jul 24, 2005 4:15 pm
Posts: 170
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.


Top
 Profile  
 
 Post subject: and to answer myself
PostPosted: Sat Nov 26, 2005 9:23 am 
Offline
Joined: Sun Jul 24, 2005 4:15 pm
Posts: 170
and to answer myself....

chmod 755 to make my file executable

and point to it in the ACTION part via...

EXEC /wireless


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu