Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 08:06
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Problem starting WiFi network adapter
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: Thu 14 Feb 2013, 12:30    Post subject:  Problem starting WiFi network adapter  

Hi,

I want to start my WiFi adapter without using the connect wizard. I have a script to do this now using ifconfig and iwconfig. The script works fine but the problem is that if I put the script in /etc/init.d it doesn't work. I can put it in /root/Startup and it is OK, but I need to load it as part of my daemon startup flow.

Any idea why it won't work when I put it in /etc/init.d and how to make this work?

Thanks!
-Ed
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9197
Location: Stratford, Ontario

PostPosted: Thu 14 Feb 2013, 12:33    Post subject:  

The scripts in /etc/init.d must have a very specific structure.

Instead, try putting the code from the script in /etc/rc.d/rc.local
Back to top
View user's profile Send private message 
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: Thu 14 Feb 2013, 12:42    Post subject:  

rcrsn51 wrote:
The scripts in /etc/init.d must have a very specific structure.

Instead, try putting the code from the script in /etc/rc.d/rc.local


Thanks! I will try this. What do you mean by a specific structure?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9197
Location: Stratford, Ontario

PostPosted: Thu 14 Feb 2013, 12:45    Post subject:  

edwin.evans wrote:
What do you mean by a specific structure?

Have you looked at any of them? They all have a "case" structure with a "start" and a "stop" section.
Back to top
View user's profile Send private message 
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: Thu 14 Feb 2013, 12:50    Post subject:  

rcrsn51 wrote:
edwin.evans wrote:
What do you mean by a specific structure?

Have you looked at any of them? They all have a "case" structure with a "start" and a "stop" section.


Yes, I see that. I am putting the code to start the adapter in the start function. It seems like it only works if it runs after rc.network.

I see the README in the directory you pointed me to mentions that rc.network is run as a parallel process. Perhaps that is the issue then.

Thanks!
Back to top
View user's profile Send private message 
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: Thu 14 Feb 2013, 12:53    Post subject:  

edwin.evans wrote:
rcrsn51 wrote:
edwin.evans wrote:
What do you mean by a specific structure?

Have you looked at any of them? They all have a "case" structure with a "start" and a "stop" section.


Yes, I see that. I am putting the code to start the adapter in the start function. It seems like it only works if it runs after rc.network.

I see the README in the directory you pointed me to mentions that rc.network is run as a parallel process. Perhaps that is the issue then.

Thanks!


Though I'm having a weird problem that I moved rc.network out of rc.d to be sure that the setup wizard wouldn't do anything but now I can't get it back. It seems to get deleted whenever I restart but I can't figure out why that is happening. I copy it there and then when I reboot it is gone.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0525s ][ Queries: 12 (0.0059s) ][ GZIP on ]