Fix hardcoded 127.0.0.1 name server address by dhclient
[hvlinux.git] / stage2 / pkg / wpa_supplicant
index 5fb368b..8578df9 100644 (file)
@@ -8,10 +8,39 @@ hvbuild()
 CONFIG_DRIVER_WEXT=y
 CONFIG_CTRL_IFACE=y
 CONFIG_BACKEND=file
+
+CONFIG_TLS=internal
+
+# If CONFIG_TLS=internal is used, additional library and include paths are
+# needed for LibTomMath. Alternatively, an integrated, minimal version of
+# LibTomMath can be used. See beginning of libtommath.c for details on benefits
+# and drawbacks of this option.
+CONFIG_INTERNAL_LIBTOMMATH=y
+
+# At the cost of about 4 kB of additional binary size, the internal LibTomMath
+# can be configured to include faster routines for exptmod, sqr, and div to
+# speed up DH and RSA calculation considerably
+CONFIG_INTERNAL_LIBTOMMATH_FAST=y
+
 EOF
 
     make
-    install -m 755 wpa_cli wpa_supplicant wpa_passphrase /sbin
-    install -m 644 doc/docbook/*8 /usr/man/man8
-    install -m 644 doc/docbook/wpa_supplicant.conf.5 /usr/man/man5
+    install -v -m 755 wpa_cli wpa_supplicant wpa_passphrase /sbin
+    install -v -m 644 doc/docbook/*8 /usr/man/man8
+    install -v -m 644 doc/docbook/wpa_supplicant.conf.5 /usr/man/man5
+}
+
+hvbuild_post()
+{
+    # Create default wpa configuration file
+    cat > /etc/wpa_supplicant.conf << EOF
+ctrl_interface=/var/run/wpa_supplicant
+
+network={
+  ssid="insert your SSID here"
+  scan_ssid=1
+  key_mgmt=WPA-PSK
+  psk="insert your password here"
+}
+EOF
 }