View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jul 28, 2006 1:57 pm 
Offline
Joined: Mon Feb 06, 2006 10:32 am
Posts: 23
Hi!

I've tired several ideas from this board to get the WLAN starting automatic after boot. Nothing works - only a seperate script maually started.

I've tried to config /etc/network/interfaces

Code:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
        address 192.168.123.222
        netmask 255.255.255.0
        network 192.168.123.0
        broadcast 192.168.123.255
        gateway 192.168.123.100
        wireless_mode managed
        wireless_essid xxxxxxxxx
        wireless_key xxxxxxxxxxxxxxxxxxx



But that does not work (not after boot)
Only a script like wlan-reboot.sh with:
Code:
iwlist wlan0 scanning
sleep 6
ifup wlan0

This works!

But this works only as root via shell.
It does not work in bootmisc.sh too!!

I've tried to add an item to the Myth-Menu.

Code:
<button>
<type> WLAN-Restart </type>
<text> WLAN-Restart </text>
<action>EXEC perl /etc/wlan-restart.sh</action>
</button>



The new button apears, but it seems that it does not work.
The command itself ("perl /etc/wlan-restart.sh") works!

What can I do now?

THANKS


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 28, 2006 3:08 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
I suspect that the myth menu option doent work because it is being run as mythtv and not root.

Do you get any output from the miscboot.sh attempt. Try capturing output

In miscboot.sh try
Code:
/etc/wlan-restart.sh > /tmp/wlan.log 2>&1


After further review...is that script perl? looks like a shell script. Whu the PERL in the menu script? still, I think the permissions required need root.

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 28, 2006 4:03 pm 
Offline
Joined: Sun Jul 09, 2006 7:54 pm
Posts: 29
I'm having a similar problem; I think hotplug causes it, but it could be my oddball zd1211 driver. If you move network initialization to after hotplug, it may work better. Or you might break other things.


Top
 Profile  
 
 Post subject: Solved!
PostPosted: Mon Jul 31, 2006 1:31 pm 
Offline
Joined: Mon Feb 06, 2006 10:32 am
Posts: 23
Thanks khrusher!
I was on the same spoor - and you'Re right.

I added an entry via "visudo"and the script works with "sudo /etc/myboot.sh"
and the same for my "Reboot-Script" in the Myth-Menu.

Now it works!


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 16 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu