LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-08-2004, 03:54 AM   #1
celticselph
Member
 
Registered: Jan 2004
Distribution: Slack 9.1!!!
Posts: 37

Rep: Reputation: 15
Startup scripts


ok, here we go......
i want my internet to go up when I boot, however when i make a file in /etc/rc.d called rc.netup containg
#!/bin/bash

dhcpcd eht0

i then ran chmod and gave it permissions of 755, and rebooted....... nothing.....
any ideas?
thanks guys/ladies
mike
 
Old 04-08-2004, 03:57 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You have to reference the file in rc.S somewhere, or else it won't run.

Also, it is "eth0".

And why do you need a special script to do this? Why isn't your machine getting a DHCP IP automatically?
 
Old 04-08-2004, 04:12 AM   #3
celticselph
Member
 
Registered: Jan 2004
Distribution: Slack 9.1!!!
Posts: 37

Original Poster
Rep: Reputation: 15
sorry about the "eht0" it is eth0 in the script.
I did a read through of rc.S and i have no idea what you mean about referencing it somwhere in that file......
As why my box does not obtain a DHCP IP automatical I have no idea...... I don't know what my network looks like, i just know dhcpcd eth0 works to get my internet up, and it will not work without it
thanks,
mike
 
Old 04-08-2004, 04:18 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
All you have to do is open up "rc.inet1" and set eth0 to use DHCP. There are comments in the file that will tell you what needs to be edited.
 
Old 04-08-2004, 04:28 AM   #5
celticselph
Member
 
Registered: Jan 2004
Distribution: Slack 9.1!!!
Posts: 37

Original Poster
Rep: Reputation: 15
I have no idea what any of that in rc.inet1 means........ totaly clueless........ any more specific help would be apericated
cheers
mike
 
Old 04-08-2004, 08:23 AM   #6
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
Quote:
Originally posted by celticselph
I have no idea what any of that in rc.inet1 means........ totaly clueless........ any more specific help would be apericated
cheers
mike
Open up /etc/rc.inet1.conf. Look for a section titled # Config information for eth0: . Mine hase 4 lines:

IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="myhostname"

Set DHCP_HOSTNAME[0] to whatever you want your machine hostname to be. Setting USE_DHCP[0]="yes" is what will cause eth0 to use DHCP. You don't need to reboot after setting this. Simply issue this command as root

/etc/rc.d/rc.inet1 restart

/etc/rc.d/rc.inet1 also takes the arguments start and stop. On one of my machines I have an onboard NIC that is disabled and an installed PCI card. Slackware sees the onboard NIC as eth0 and my card as eth1. In that situation I made changes for eth1 instead(the entries in /etc/rc.inet1.conf that end in [1] instead of [0] as above)

Or simply use the netconfig command as root to set things up.

Last edited by flyfishin; 04-08-2004 at 08:27 AM.
 
  


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
Startup Scripts?? jimbo-62 Debian 5 07-10-2005 11:23 AM
startup scripts... ValidiusMaximus Linux - Software 8 01-11-2005 06:55 PM
Startup Scripts jhartney Linux - Newbie 3 01-07-2005 02:35 AM
startup scripts mimi Linux - General 1 04-24-2002 04:22 AM
X Startup Scripts JHuizingh Linux - General 1 09-18-2001 02:02 PM

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

All times are GMT -5. The time now is 04:07 AM.

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