Results 1 to 3 of 3
Hello!
I've used Linux for about four years, but never got into scripting or terminal use (though I know some important terminal commands...).
I installed Pardus Linux 2011 on one ...
- 07-22-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 9
Newbie Script Request
Hello!
I've used Linux for about four years, but never got into scripting or terminal use (though I know some important terminal commands...).
I installed Pardus Linux 2011 on one of my systems, and my wireless card didn't work - though it recognized it in lspci. Long story short (and many hours later), I fooled around with a few files and entered some commands into the terminal, and have successfully connected to my router...
Now, what I must do every time I boot is run "modprobe wl" as root in the terminal. I'm completely new to writing my own scripts, and was hoping somebody could point me in the right direction...
This works:
...but I have to go to terminal, log in as root, then execute it. Not too bad, but I'd rather not do it every time I boot my computer.#!/bin/bash
modprobe wl
I have also tried putting it in /etc/init.d/, but that didn't work.
What am I doing wrong? and kinda as a side note, does anything in that folder run as root?
Thanks!
- 07-22-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,842
I'm not familiar with Pardus, but you can usually put that kind of stuff in one of these files/directories:
/etc/modprobe.conf
/etc/modprobe.d/
/etc/sysconfig/modules/
Check out Pardus documentation for auto-loading kernel modules.
hth
- 07-22-2011 #3Just Joined!
- Join Date
- Jul 2011
- Posts
- 9
You were right! haha. I don't understand why I didn't look for script info on Pardus' WorldForum...Found my solution here (I'd post the URL, but can't yet due to my low post count). I edited /etc/conf.d/local.start, copied and pasted what I quoted, and now on bootup the internet works (in fact, it connects instantly, which is sweet).


Reply With Quote
