LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-19-2009, 08:07 AM   #1
rhermsen
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 41

Rep: Reputation: 16
Slackware 12.2 /sbin/dhcpcd: invalid option – R due to DHCP_KEEPRESOLV[x]="yes"


I recently reinstalled my system with Slackware 12.2 (coming from 12.1), and during startup I see the following lines:

Polling for DHCP server on interface eth1:
/sbin/dhcpcd: invalid option – R
Polling for DHCP server on interface ath0:
/sbin/dhcpcd: invalid option – R
And I don’t get an IP address from dhcp due to this.

And in the message log I see the following for each reboot:
Messages log:
Jul 19 13:46:38 kayhermsen logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 30 -R eth1
Jul 19 13:46:42 kayhermsen logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 30 -R -R ath0

Looking into /etc/rc.d/rc.inet1 I see the line
[ "${DHCP_KEEPRESOLV[$i]}" = "yes" ] && DHCP_OPTIONS="$DHCP_OPTIONS -R"
And indeed I have DHCP_KEEPRESOLV[x]="yes" configured in /etc/rc.d/rc.inet1.conf for these two interfaces (for historical reasons).

Commenting out the DHCP_KEEPRESOLV[x]="yes" lines solves this issue, but I have to do that for all cards, see the double –R for ath0.
Commenting out the DHCP_KEEPRESOLV[x]="yes" line for only the ath0 which is at the end of the /etc/rc.d/rc.inet1.conf file still gives one –R option in the message file.

The man pages for dhcpcd doesn’t show this –R option.

Is this a known issue?
I looked into README.TXT and CHANGES_AND_HINTS.TXT
 
Old 07-19-2009, 10:42 AM   #2
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Not sure what version of dhcpcd you have - mines 2.0.8. This is from my copy of the man pages :
Code:
       -R     Prevents dhcpcd from replacing existing <etcDir>/resolv.conf file.
 
Old 07-19-2009, 12:06 PM   #3
rhermsen
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 16
Thanks for letting me look to the version, I didn't notice (and didn't expect) that it is a DroplineGnome specific package.

cat /var/log/packages/dhcpcd-4.0.12-i686-1dl
PACKAGE NAME: dhcpcd-4.0.12-i686-1dl
COMPRESSED PACKAGE SIZE: 46 K
UNCOMPRESSED PACKAGE SIZE: 110 K
PACKAGE LOCATION: ./dhcpcd-4.0.12-i686-1dl.tgz
PACKAGE DESCRIPTION:
FILE LIST:

While on the disk 1 of the Slack 12.2 cd there is ./slackware/n/dhcpcd-2.0.8-i486-1.tgz

I probably have to address this to the DLG development team.
 
  


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
"cc1: error: invalid option 'tune=i686'" while installing Perl modules via CPAN scuzzman Programming 12 08-21-2006 09:30 PM
Cannot get IP address on ra2500 pcmcia card without typing "/sbin/dhcpcd ra0" at boot Interdictor Linux - Wireless Networking 2 08-10-2006 04:27 PM
"**** /sbin/dhcpcd: not running" messages on shutdown/reboot Nylex Slackware 2 01-22-2006 09:12 AM
LinNeighborhood --"nmblookup: invalid option -- o" wlfdgcrkz Linux - Software 0 04-27-2003 01:35 PM
"The next release of Slackware is due in a few weeks. " -bob slackfan Slackware 5 02-23-2003 12:08 AM

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

All times are GMT -5. The time now is 06:37 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