LinHES Forums http://forum.linhes.org/ |
|
working Wlan - only after running startscript manually http://forum.linhes.org/viewtopic.php?f=2&t=10988 |
Page 1 of 1 |
Author: | Marc.Rudolph [ Fri Jul 28, 2006 1:57 pm ] |
Post subject: | working Wlan - only after running startscript manually |
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 |
Author: | khrusher [ Fri Jul 28, 2006 3:08 pm ] |
Post subject: | |
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. |
Author: | nybbler [ Fri Jul 28, 2006 4:03 pm ] |
Post subject: | |
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. |
Author: | Marc.Rudolph [ Mon Jul 31, 2006 1:31 pm ] |
Post subject: | Solved! |
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! |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |