slitaz-boot-scripts rev 126

network: ndiswrapper driver is installed only once and mod load with LOAD_MODULES
author Christophe Lincoln <pankso@slitaz.org>
date Mon Dec 01 22:03:15 2008 +0100 (2008-12-01)
parents 81e6e80b5ad4
children 31520720987c
files etc/init.d/network.sh etc/network.conf
line diff
     1.1 --- a/etc/init.d/network.sh	Sun Nov 30 08:46:58 2008 +0000
     1.2 +++ b/etc/init.d/network.sh	Mon Dec 01 22:03:15 2008 +0100
     1.3 @@ -42,14 +42,6 @@
     1.4  	# For wifi. Users just have to enable it throught yes and usually
     1.5  	# essid any will work and interface is autodetected.
     1.6  	if [ "$WIFI" = "yes" ] || grep -q "wifi" /proc/cmdline; then
     1.7 -		if [ -n "$NDISWRAPPER_DRIVERS" -a -x /usr/sbin/ndiswrapper ]; then
     1.8 -			for i in $NDISWRAPPER_DRIVERS; do
     1.9 -				ndiswrapper -i $i
    1.10 -			done
    1.11 -			echo -n "Loading ndiswrapper module..."
    1.12 -			modprobe ndiswrapper
    1.13 -			status
    1.14 -		fi
    1.15  		if [ ! -d /sys/class/net/$WIFI_INTERFACE/wireless ]; then
    1.16  			echo "$WIFI_INTERFACE is not a wifi interface, changing it."
    1.17  			WIFI_INTERFACE=$(grep : /proc/net/dev | cut -d: -f1 | \
     2.1 --- a/etc/network.conf	Sun Nov 30 08:46:58 2008 +0000
     2.2 +++ b/etc/network.conf	Mon Dec 01 22:03:15 2008 +0100
     2.3 @@ -36,4 +36,3 @@
     2.4  WPA_DRIVER=""
     2.5  WIFI_CHANNEL=""
     2.6  WIFI_IWCONFIG_ARGS=""
     2.7 -NDISWRAPPER_DRIVERS=""