slitaz-boot-scripts rev 88

may start ndiswrapper
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 15 23:52:23 2008 +0000 (2008-05-15)
parents 16d0f81a74da
children 51e523310748
files etc/init.d/network.sh etc/network.conf
line diff
     1.1 --- a/etc/init.d/network.sh	Fri May 16 01:09:29 2008 +0200
     1.2 +++ b/etc/init.d/network.sh	Thu May 15 23:52:23 2008 +0000
     1.3 @@ -38,6 +38,12 @@
     1.4  # For wifi. Users just have to enable it throught yes and usually
     1.5  # essid any will work and interafce is wlan0.
     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 +		modprobe ndiswrapper
    1.12 +	fi
    1.13  	IWCONFIG_ARGS=""
    1.14  	[ -n "$WIFI_MODE" ] && IWCONFIG_ARGS="$IWCONFIG_ARGS mode $WIFI_MODE"
    1.15  	[ -n "$WIFI_KEY" ] && IWCONFIG_ARGS="$IWCONFIG_ARGS key $WIFI_KEY"
     2.1 --- a/etc/network.conf	Fri May 16 01:09:29 2008 +0200
     2.2 +++ b/etc/network.conf	Thu May 15 23:52:23 2008 +0000
     2.3 @@ -33,3 +33,4 @@
     2.4  WIFI_MODE="managed"
     2.5  WIFI_KEY=""
     2.6  WIFI_CHANNEL=""
     2.7 +NDISWRAPPER_DRIVERS=""