# HG changeset patch # User Pascal Bellard # Date 1210895543 0 # Node ID 3d8d75e24f0a1657374926e3e9821abdbc660f14 # Parent 16d0f81a74da5d2ccedbe85e3cc1a7eca7a3ecfc may start ndiswrapper diff -r 16d0f81a74da -r 3d8d75e24f0a etc/init.d/network.sh --- a/etc/init.d/network.sh Fri May 16 01:09:29 2008 +0200 +++ b/etc/init.d/network.sh Thu May 15 23:52:23 2008 +0000 @@ -38,6 +38,12 @@ # For wifi. Users just have to enable it throught yes and usually # essid any will work and interafce is wlan0. if [ "$WIFI" = "yes" ] || grep -q "wifi" /proc/cmdline; then + if [ -n "NDISWRAPPER_DRIVERS" -a -x /usr/sbin/ndiswrapper ]; then + for i in $NDISWRAPPER_DRIVERS; do + ndiswrapper -i $i + done + modprobe ndiswrapper + fi IWCONFIG_ARGS="" [ -n "$WIFI_MODE" ] && IWCONFIG_ARGS="$IWCONFIG_ARGS mode $WIFI_MODE" [ -n "$WIFI_KEY" ] && IWCONFIG_ARGS="$IWCONFIG_ARGS key $WIFI_KEY" diff -r 16d0f81a74da -r 3d8d75e24f0a etc/network.conf --- a/etc/network.conf Fri May 16 01:09:29 2008 +0200 +++ b/etc/network.conf Thu May 15 23:52:23 2008 +0000 @@ -33,3 +33,4 @@ WIFI_MODE="managed" WIFI_KEY="" WIFI_CHANNEL="" +NDISWRAPPER_DRIVERS=""