LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-08-2004, 01:45 PM   #1
clwhitt
LQ Newbie
 
Registered: Apr 2004
Location: Washougal, WA
Distribution: Ubuntu Hardy Heron (8.04)
Posts: 19

Rep: Reputation: 0
Automatically load scripts at boot


I'm currently using SuSE 9.1 Pro. I need to know how or where to place a script that will automatically load up my wireless extensions when booting and/or plugging in my usb wireless adapter (like an autoexec.bat file).

Currently my script contains:
iwconfig wlan0 mode Managed channel 6 essid any nickname wlan
ifconfig wlan0 192.168.0.44
route add default gw 192.168.0.1
 
Old 06-08-2004, 02:12 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
if you put #!/bin/bash at the top of your script, save it with as something memorable, and then place it in a global location (such as /usr/etc) and call it from rc.local.

Or better still, just add the lines of your script to the bottom of rc.local (/etc/rc.d/rc.local on slackware, maybe a different location on SuSE)

Last edited by Komakino; 06-08-2004 at 02:15 PM.
 
Old 06-14-2004, 11:37 AM   #3
clwhitt
LQ Newbie
 
Registered: Apr 2004
Location: Washougal, WA
Distribution: Ubuntu Hardy Heron (8.04)
Posts: 19

Original Poster
Rep: Reputation: 0
Automatically load scripts at boot

Thanks Kamakino. I did find that boot.local is the equivalent to rc.local in SuSE 9.1 Pro.
Unfortunately, I also found that not to be the right place to place the script I need. Watching the startup, it looks like my script to setup my wireless network adapter is run before the USB drivers are installed, and therefore fails.
Where would I place a script that is run after KDE starts up?

Chuck
 
  


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
running scripts automatically skguha Linux - Newbie 4 08-03-2005 03:11 AM
Hang on boot 2.6.10 after scripts load UoVoBW Linux - Software 1 01-01-2005 05:27 PM
Automatically run scripts on startup? Phaethar Fedora 10 09-24-2004 02:35 AM
Where to run scripts automatically on login/logout hilltop*Tech Linux - General 2 02-06-2004 10:59 AM
FWBuilder Help: Can't get it to load script automatically on boot puma1824 Linux - Security 3 09-11-2003 09:20 PM


All times are GMT -5. The time now is 05:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration