View Single Post
  #5 (permalink)  
Old 21-Oct-2008, 00:29
tjwoosta tjwoosta is offline
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 31
tjwoosta hasn't been rated much yet
Default Re: how to make wlan0 start automatically?

ok i dont think this idea is going to work

my network manager is already configured to auto connect and everything

the problem is that wlan0 isnt even recognized as a device until after i run the ./wlan0up script


heres the contents of wlan0up
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 ../
Reply With Quote