This is on the 216 version.
The best bit is that Perl and the ndiswrapper script are not needed.
I just make a directory in etc/ called 'ndiswrapper'
Copy the folder containing the windoze drivers - in my case 'netwg11t', into 'ndiswrapper'
I copy over an exisiting 'wpa_supplicant.conf' to etc/ but this could be edited manually of course.
Create another directory in etc/ called 'dhcpc'
dhcpcd was needed - copied it from the full 412, and it requires librt.so.1
loadndiswrapper is needed - the static one you made did not work for me so used a 'normal' one that is only 15k anyway.
Run this script:
Code: Select all
#!/bin/sh
## modify this script to include your wifi interface name (instead of "ath0")
## and wifi driver type (instead of "madwifi").
# Orginal script was provided by Tempestuous and modified by JustGreg for
# his network use. Modified 12 May 2008 for testing of Dingo kernel 2.6.25
modprobe ndiswrapper
echo " Loading ndiswrapper module"
echo "Configuring Wireless LAN with wpa_supplicant"
## bring up the wireless interface, unconfigured
echo
echo "Starting up wlan0"
ifconfig wlan0 up
echo " "
echo "Now starting wpa_supplicant"
## first remove stale wpa_supplicant file if it exists
if [ -e /var/run/wpa_supplicant/* ]; then rm /var/run/wpa_supplicant/*; fi
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -B
# sleep 60 used for testing. For normal use, sleep 60 can be reduced
sleep 15
echo " "
# wp_cli is for testing. However, it does show that wpa connect for
#normal use.
wpa_cli status
echo " "
echo "Running dhcpcd address service"
## for automatic IP
## first remove stale existings dhcpcd files if exists
# for puppy 2.17 use if [ -e /var/run/*.pid ]; then rm /var/run/*.pid; fi
# for puppy 3.00. Kill any active dhcpcd processes
dhcpcd -k wlan0
if [ -e /var/run/*.pid ]; then rm /var/run/*.pid; fi
rm /var/run/dhcpcd-*.*
dhcpcd -t 30 -h puppypc -d wlan0
sleep 5
## or for static IP
## modify /etc/resolv.conf to include your nameservers
#ifconfig ath0 192.168.0.xx broadcast 192.168.0.255 netmask 255.255.255.0
#route add default gw 192.168.0.1 ath0 # or whatever your router's IP is
This script is to shut it down and tidy up:
Code: Select all
#!/bin/sh
#Just Greg script to terminate wifi processes 12 May 2008
# change wlan0 to your network interface name
dhcpcd -k wlan0
wpa_cli terminate
ifconfig wlan0 down