LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2005, 04:13 AM   #1
bl0tt0
Member
 
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 178

Rep: Reputation: 62
netconfig just mauled my startup time!


I just ran netconfig on my Slackware 10.2 system so that I wouldn't have to manually runt through setting my computer's name every time I connected to the internet. I am running Slackware on a laptop that generally connects to the internet via wifi, and so no every startup into Slackware involves a minute-long wait while dhcpcd tried to discover that mt computer isn't plugged into an ethernet cable. I compiled and installed both libdaemon and ifplugd and wrote dhcpcd scripts into the ifplugd.action file in place of the ifup/ifdown commands, hoping that this would fix the problem, but nothing doing there.

My guess is that ifplugd isn't getting run at startup, though I configured it so that it put startup scripts into rc.d. If not this, I'm not sure where exactly the problem lies, but I really wouldn't mind just fixing the startup script so that dhcpcd either isn't run at startup, or is run in the background later. Can someone give me a clue where netconfig writes this script?
 
Old 11-29-2005, 06:45 AM   #2
GlowGlow
Member
 
Registered: Jun 2005
Posts: 111

Rep: Reputation: 15
Code:
$ grep "/sbin/dhcpcd" /etc/rc.d/*
/etc/rc.d/rc.0:  /sbin/dhcpcd -k 1> /dev/null 2> /dev/null
/etc/rc.d/rc.6:  /sbin/dhcpcd -k 1> /dev/null 2> /dev/null
/etc/rc.d/rc.inet1:        echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -t 60 ${DHCP_OPTIONS} ${1}" | $LOGGER
/etc/rc.d/rc.inet1:        /sbin/dhcpcd -d -t 60 ${DHCP_OPTIONS} ${1}
/etc/rc.d/rc.inet1:      echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -k -d ${1}" | $LOGGER
/etc/rc.d/rc.inet1:      /sbin/dhcpcd -k -d ${1} || /sbin/ifconfig ${1} down
Now, that wasn't hard, was it? You can see immediately see the timeout (that is set to 60 seconds).
 
Old 11-29-2005, 07:43 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
bl0tt0,

You could try out my adaptations of rc.inet1 and rc.wireless at http://www.slackware.com/~alien/rc_scripts/
Especially look at the "ifcfg"directory there and read the README.
I created that stuff for the exact situation you are describing - I have a wireless laptop too and I carry it around a lot.

Note that these scripts are still experimental and although they work for me and several others, they might bust your system :-) Please give me any feedback you can think of if you decide to use them.

Eric
 
Old 11-29-2005, 07:59 AM   #4
GlowGlow
Member
 
Registered: Jun 2005
Posts: 111

Rep: Reputation: 15
Nice work Eric. For the moment the feature I miss most is MAC address-based configuration, rather than using the interface name for configuration. This is one of the reasons for which I still prefer to replace the networking scripts with ifupdown et al.
 
Old 11-29-2005, 06:40 PM   #5
bl0tt0
Member
 
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 178

Original Poster
Rep: Reputation: 62
That works almost perfectly for me! The only problem I've noticed is that I still have to run "dhcpcd ath0 &" after startup and logging in. I notice that the hotplug devices get detected after the inet startup scripts, and I think that may be a problem. I use madwifi to load an atheros wireless chip, and as I recall, it is loaded by the hotplug system at boot. I'm not for sure on that, as I've only just started delving into linux on this machine. It's not that huge a deal, but it is an annoyance nonetheless. All in all, the new scripts definitely fixed the long wait at boot time.

Many thanks for the help guys!

EDIT: I finally fixed this, though I'm not quite sure how.

Last edited by bl0tt0; 11-29-2005 at 09:48 PM.
 
  


Reply



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
How to schedule startup time wolfipa Linux - General 4 09-01-2006 10:55 PM
Startup time Openoffice.org Tomo1961 Linux - Software 5 05-20-2005 10:39 PM
TV Time Startup Config scoobs Linux - Software 2 06-23-2004 08:44 AM
System time changes at every startup mad4linux Linux - General 3 01-01-2004 09:37 AM
Startup Time mobile target Linux - General 4 08-18-2002 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration