X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Fwpa_supplicant;h=69c833196f02fed04d8d71b3d65cf66e868064d2;hb=3a7685561df0a4d80e727e5b26fbf413ad0586f2;hp=5fb368b2099b8040282e6a662916fff3f3b2cc98;hpb=f3c8db3027d5dc530e1f30c88e0235975211582e;p=hvlinux.git diff --git a/stage2/pkg/wpa_supplicant b/stage2/pkg/wpa_supplicant index 5fb368b..69c8331 100644 --- a/stage2/pkg/wpa_supplicant +++ b/stage2/pkg/wpa_supplicant @@ -8,6 +8,20 @@ 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 @@ -15,3 +29,18 @@ EOF install -m 644 doc/docbook/*8 /usr/man/man8 install -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 +}