Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-21-2004, 05:02 PM   #1
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Rep: Reputation: 15
where do i add a command to make it run on boot

hi guys, been using linux for nearly a week and its not uninstalled yet!!!! actually im doing ok, i just got my wireless network card going using the ndis wrapper(install worked flawlessly) however every time i reboot i need to run the command "modprobe ndiswrapper" to bring up the wireless card and i was just wondering is there a file where i can add that to make it boot when my machine starts up?? i have searched around but am having trouble finding the info i want, im sure its just some simle file i would be able to add it to.....thanks for the help!!
Old 06-21-2004, 05:10 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Different distro's have different bootscripts. What distro are you using?
Old 06-21-2004, 05:12 PM   #3
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
(never mind here, Andrew took what i was going to say , so ill just leave the last part ) (and im to lazy to explain how sysvinit works (sysvinit is what the kernel executes after it loads, and this program is responsible for keeping tabs on all processes, and executing files at boot up, as well as managing the runlevels)
Old 06-21-2004, 05:28 PM   #4
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Original Poster
Rep: Reputation: 15
sorry guys, im using mandrake 10 powerpack
Old 06-21-2004, 06:03 PM   #5
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
You should modify this file: '/etc/modprobe.preload'.
It's fairly simple, you just need to add this at the end: 'ndiswrapper'

I hope you're using kernel-2.6, this file exists starting from 2.6.0...

Hope this helps.

PS: The Search function(here at LQ.orf) and are your friend...
I've never used mandrake!

Last edited by lokee; 06-21-2004 at 06:12 PM.


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
run command on boot FNC Linux - General 1 11-13-2005 05:29 AM
How do I make a command run as root at boot up under Fedora 3? versaulis Linux - Software 5 02-10-2005 06:22 PM
add a program to run in vty/console at boot? carl0ski Mandriva 3 11-23-2004 06:07 AM
How to add a command to run during Mandrake 10.1 boot up simonw Linux - General 5 10-27-2004 02:35 PM
make a command run at startup? cheater1034 Linux - General 2 09-12-2004 05:51 AM > Forums > Linux Forums > Linux - Newbie

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