LinuxQuestions.org
Register a domain and help support LQ
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 10-21-2008, 02:15 AM   #1
tjwoosta
Member
 
Registered: Mar 2008
Posts: 36

Rep: Reputation: 16
how to make wlan0 driver start automatically in opensuse 11?


ive installed this hacked driver for my rtl8187b wireless card
link

all works fine

the problem is that now every time i log in i must do this
Code:
su
Code:
cd rtl8187b-modified
Code:
./wlan0up
in Ubuntu i was able to add this to my /etc/rc.local
Code:
/home/tj/wifi/wlan0up
ifconfig wlan0 up
dhclient wlan0
exit 0

opensuse doesn't have an /etc/rc.local

is there another place i can add those lines to make them run at startup with root privlages?

or, alternatively, cant i just permanently insert the modules that the wlan0up script inserts?

this is the wlan0up script
Code:
#!/bin/bash

if test "`dirname $0`" != ".";
then
	cd `dirname $0`
fi

SYSTEM=`uname -r|cut -d. -f1,2`

if [ $SYSTEM = 2.4 ]
then
cd ieee80211
insmod ieee80211_crypt-rtl.o
insmod crypto-rtl.o
insmod michael_mic-rtl.o
insmod aes-rtl.o
insmod ieee80211_crypt_wep-rtl.o
insmod ieee80211_crypt_tkip-rtl.o
insmod ieee80211_crypt_ccmp-rtl.o
insmod ieee80211-rtl.o

cd ../rtl8187
insmod r8187.o

else
cd ieee80211/
insmod ieee80211_crypt-rtl.ko
insmod ieee80211_crypt_wep-rtl.ko
insmod ieee80211_crypt_tkip-rtl.ko
insmod ieee80211_crypt_ccmp-rtl.ko
insmod ieee80211-rtl.ko

cd ../rtl8187/
insmod r8187.ko $@
fi

cd ../
now i have the 2.6.25.16 kernel so i think i would only need theese modules

insmod ieee80211_crypt-rtl.ko
insmod ieee80211_crypt_wep-rtl.ko
insmod ieee80211_crypt_tkip-rtl.ko
insmod ieee80211_crypt_ccmp-rtl.ko
insmod ieee80211-rtl.ko

insmod r8187.ko $@

so how would i add theese modules to the modules that get loaded?

am i even on the right track here?

Last edited by tjwoosta; 10-21-2008 at 02:19 AM.
 
Old 10-21-2008, 02:24 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
If you use kde place a symlink to what you want to run in ~/.kde/Autostart to start when you log into kde.
If you use Gnome, look in system > preferences > sessions ---> startup programs --> add to do the same thing.

Though OpenSUSE does not have a /etc/rc.local but it does have a /etc/rc.d/boot.local
 
Old 10-21-2008, 02:35 AM   #3
tjwoosta
Member
 
Registered: Mar 2008
Posts: 36

Original Poster
Rep: Reputation: 16
Quote:
Though OpenSUSE does not have a /etc/rc.local but it does have a /etc/rc.d/boot.local
perfect.. that worked

thank you
 
  


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
Make Samba start automatically? anti.corp Arch 2 02-12-2006 12:59 PM
how to make named start automatically at startup nazzymac *BSD 3 04-20-2004 11:58 AM
How to create a tiny script and make it start automatically tchigi Linux - Newbie 2 11-28-2003 04:48 AM
How can I make my NIC card working automatically at my os start? exper Linux - Hardware 1 11-12-2003 10:50 PM
How can i make xfree86 start automatically at boot? KiLLaWaBBiT Linux - Software 1 04-07-2003 11:06 AM


All times are GMT -5. The time now is 02:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration