LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-04-2006, 12:01 PM   #1
p0k3r
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
Boot script


okay, so im running slackware 10 and im using Wlan for internett where I have to have a static Ip

so every time I boot I have to type these 2 commands:

ifconfig rausb0 192.168.0.100 up
route add default gw 192.168.0.1 rausb0


I don't reboot often but never the less I realy dont want to do this every time. Im new to linux but not to google so I tryed that and all I got was how
Quote:
Slackware Linux is not like other Linux distributions that separate the startup scripts across individual directories. It instead follows a more BSD-like startup method.
and things similar to this.

could any one at least point me in the right direction on where I can insert these commands so that they are executed every time I boot

thanks for any help

Last edited by p0k3r; 11-04-2006 at 12:02 PM.
 
Old 11-04-2006, 12:21 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
# vi /etc/rc.d/rc.local

Place your commands in there:

--- rc.local ---
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

ifconfig rausb0 192.168.0.100 up
route add default gw 192.168.0.1 rausb0
--- rc.local ---
 
Old 11-04-2006, 12:49 PM   #3
p0k3r
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
thanks man
 
Old 11-04-2006, 01:32 PM   #4
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
Why don't you just add that to /etc/rc.d/rc.inet1.conf where it belongs?
Code:
# Config information for eth0:
IFNAME[0]="rausb0"
IPADDR[0]="192.168.0.100"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""

GATEWAY="192.168.0.1"
Eric

Last edited by Alien Bob; 11-04-2006 at 01:45 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
boot script freaker2k5 Mandriva 3 08-29-2004 02:44 PM
Boot Script justaguynsrq Linux - Newbie 5 03-18-2004 11:05 AM
Stop boot script at boot time!! kmiles2 Linux - Newbie 1 02-23-2004 10:04 PM
Boot Script jhayes Linux - Software 16 07-18-2003 09:47 AM
Script at boot Half_Elf Programming 3 06-02-2002 10:13 AM

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

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