LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices

Reply
 
Search this Thread
Old 01-28-2009, 02:32 PM   #1
Zombie13
Member
 
Registered: Nov 2003
Posts: 70

Rep: Reputation: 15
Question Having trouble starting network at boot-up from a script.


My puppy install can't connect to my wireless network using the setup wizard (it connects to the wireless, but can't get an IP address from the DHCP on the router).

However, after a bit of digging around I found the following put into a script to work for my network...

Code:
iwconfig wlan0 channel 1 essid MyNetworkID mode managed key BLAH-BLAH-BL
ifconfig wlan0 192.168.1.41 netmask 255.255.255.0
route add -net default gw 192.168.1.254 netmask 0.0.0.0
It works great from a single click after the laptop has booted. However, I can't get it to run at startup. I've tried placing it in root's "Startup" directory. No joy. I've also tried adding a link to it in "/etc/rc.d/rc.local", even placing the script in "/etc/rc.d/" and calling it "rc.netstart" and still nothing happens until I run the script manually.

Any ideas?

Last edited by Zombie13; 01-28-2009 at 02:40 PM.
 
Old 02-03-2009, 01:21 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 703

Rep: Reputation: 80
The last two notebooks I had were very special concerning "when" to start up wireless.
With the first one I had to wait 30 sek. after the boot sequence was completed, otherwise it refused to work.
With this one I have to start it up as soon as possible after boot. Doing it later manually won't work (needed a few days to find this out).
So, give it a try - measure how long you wait since boot has completed (excl. yourself logging in) and insert a "sleep" command at the beginning of your script for the time you usually need to start wireless manually.

What shall I say...
 
Old 02-10-2009, 03:09 PM   #3
Zombie13
Member
 
Registered: Nov 2003
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you, that worked!
 
Old 02-11-2009, 01:06 PM   #4
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 703

Rep: Reputation: 80
You're welcome
Weird, isn't it?!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
perl script in rc.local file not starting at boot up time nscjagan Linux - Newbie 1 11-26-2008 07:19 AM
starting a programme from boot script in Etch knobby67 Debian 10 02-05-2008 03:38 AM
Starting wireless network at boot sqwiggly Linux - Wireless Networking 1 07-31-2007 01:55 PM
starting the script at boot time hudy_rob Mandriva 4 12-09-2004 10:29 AM
starting a script on boot jax8 Linux - Newbie 1 03-19-2004 10:38 PM


All times are GMT -5. The time now is 02:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration