Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-24-2007, 02:37 AM   #1
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
Question ath0 DHCP Script Trouble

Sorry, if this has been resolved before. I've tried searching but nothing came up.

For some strange reason, my ath0 interface isn't being setup for DHCP at startup when it should be. I'm running an almost fresh install of Slackware 11.0.

I know for a fact that my wireless network is currently setup and working fine. I followed the guide located here. To connect to the network (and via that, the Internet) I need to run the command 'dhcpcd -h Sen ath0' once the startup has completed.

My /etc/rc.d/rc.inet1.conf contains 'USE_DHCP[0]="yes"' (under the ath0 selection) but it doesn't appear to make a difference.

I did a little research and found that this part of /etc/rc.d/rc.inet1 causes DHCP to run...
      if [ "${USE_DHCP[$i]}" = "yes" ]; then # use DHCP to bring interface up
        [ ${DHCP_HOSTNAME[$i]} ] && DHCP_OPTIONS="-h ${DHCP_HOSTNAME[$i]}"
        [ "${DHCP_KEEPRESOLV[$i]}" = "yes" ] && DHCP_OPTIONS="$DHCP_OPTIONS -R"
        [ "${DHCP_KEEPNTP[$i]}" = "yes" ] && DHCP_OPTIONS="$DHCP_OPTIONS -N"
        [ "${DHCP_KEEPGW[$i]}" = "yes" ] && DHCP_OPTIONS="$DHCP_OPTIONS -G"
        [ ${DHCP_IPADDR[$i]} ] && DHCP_OPTIONS="$DHCP_OPTIONS -s ${DHCP_IPADDR[$i]}"
        echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -t ${DHCP_TIMEOUT[$i]:-60} ${DHCP_OPTIONS} ${1}" | $LOGGER
        /sbin/dhcpcd -d -t ${DHCP_TIMEOUT[$i]:-60} ${DHCP_OPTIONS} ${1}
      else # bring up interface using a static IP address
I've tried adding an echo statement to it to tell me what was going on and I found that it's calling '/sbin/dhcp -d -t 60 -h Sen eth0'. The strange thing is that I have no eth0 configured anywhere and the only matches of 'eth0' in the entire /etc/rc.d directory are just under script comments.

What causing eth0 to be set? Any ideas? Sorry, if there is an obvious answer. I'm quite newbie when it comes to Linux and bash scripting.

Huge thanks to any replies.
Old 01-24-2007, 03:41 AM   #2
Registered: Aug 2005
Posts: 235

Original Poster
Rep: Reputation: 30
Alright, this has been resolved. Could someone delete this thread.
Old 01-24-2007, 07:15 AM   #3
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,714
Blog Entries: 27

Rep: Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057Reputation: 2057
Originally Posted by pxumsgdxpcvjm
Alright, this has been resolved. Could someone delete this thread.

Post how you resolved the problem. No matter how embarrassing it may seem, we all make silly mistakes.

That way another user may find the solution on LQ with a search. Just to request a deletion helps no one.


bash, dhcp, dhcpcd, slackware

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
DHCP / DNS Trouble gkurts Linux - Networking 3 06-29-2009 04:37 AM
dhcp says "wrong interface name: "ath0" Quakeboy02 Linux - Networking 10 12-19-2006 07:14 PM
dhcp only on ath0 pelusitavali Linux - Networking 0 12-07-2005 03:12 PM
Trouble with DHCP and Sound drzigman Linux - Hardware 6 01-25-2003 10:27 PM
Slackware 8.1 DHCP trouble matruschka Linux - Networking 6 07-12-2002 08:21 AM

All times are GMT -5. The time now is 08:22 PM.

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