build () {
cd $name-$version/$name
+
cp defconfig .config
+ echo "CONFIG_DRIVER_NL80211=y" >> .config
echo "CONFIG_READLINE=y" >> .config
+
make
+
install -d $PKG/{usr/sbin,usr/man/man{8,5},etc}
- install wpa_{cli,passphrase,supplicant} $PKG/usr/sbin
- install doc/docbook/wpa_{background,cli,passphrase,supplicant}.8 $PKG/usr/man/man8
- install doc/docbook/wpa_supplicant.conf.5 $PKG/usr/man/man5
+ install -m 0755 wpa_{cli,passphrase,supplicant} $PKG/usr/sbin
+ install -m 0644 doc/docbook/wpa_{background,cli,passphrase,supplicant}.8 $PKG/usr/man/man8
+ install -m 0644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/man/man5
+
echo -e "ctrl_interface=/var/run/wpa_supplicant
" > $PKG/etc/wpa.conf
chmod 0600 $PKG/etc/wpa.conf
}
diff --git a/wpa_supplicant/README b/wpa_supplicant/README
index 300fc8b..71dbfc9 100644
--- a/wpa_supplicant/README
+++ b/wpa_supplicant/README
@@ -28,13 +28,11 @@ POST-INSTALL
/sbin/modprobe ipw2100
/sbin/ifconfig eth1 xxx.xxx.xxx.xxx netmask 255.255.255.xxx
/sbin/route add default gw xxx.xxx.xxx.xxx
- /usr/sbin/wpa_supplicant -B -Dwext -ieth1 -c/etc/wpa.conf
-
- Note: the above configuration makes use of the generic wext
- wpa_supplicant driver (Linux wireless extensions),
- which is the preferred nowadays. Use this driver for
- ndiswrapper as well.
+ /usr/sbin/wpa_supplicant -B -Dnl80211 -ieth1 -c/etc/wpa.conf
+ Note: the above configuration makes use of the generic nl80211
+ wpa_supplicant driver, which is the preferred nowadays
+ and supersedes the wext (wireless extensions) driver.
PRECAUTION
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux