mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
876 B

  1. wpa_supplicant_preconf()
  2. {
  3. cp defconfig .config
  4. if pkginstalled openssl ; then
  5. sed -i -e 's,^#\(CONFIG_EAP_TLS=y\),\1,' \
  6. -e 's,^#\(CONFIG_EAP_PEAP=y\),\1,' \
  7. -e 's,^#\(CONFIG_EAP_TTLS=y\),\1,' .config
  8. fi
  9. if pkginstalled pcsc-lite ; then
  10. sed -i -e 's,^#\(CONFIG_EAP_PCSC=y\),\1,' \
  11. -e 's,^#\(CONFIG_EAP_SIM=y\),\1,' \
  12. -e 's,^#\(CONFIG_EAP_AKA=y\),\1,' .config
  13. fi
  14. if pkginstalled atmelwlandriver ; then
  15. sed -i -e 's,^#\(CONFIG_DRIVER_ATMEL=y\),\1,' .config
  16. fi
  17. }
  18. wpa_supplicant_postmake()
  19. {
  20. if pkginstalled qt3* ; then
  21. make wpa_gui
  22. cp -a wpa_gui/wpa_gui $root/$bindir/
  23. fi
  24. if pkginstalled qt4* ; then
  25. make wpa_gui-qt4
  26. cp -a wpa_gui/wpa_gui $root/$bindir/wpa_gui-qt4
  27. fi
  28. [ ! -f $root/etc/wpa_supplicant.conf ] && \
  29. cp -a wpa_supplicant.conf $root/etc
  30. }
  31. hook_add preconf 5 wpa_supplicant_preconf
  32. hook_add postmake 5 wpa_supplicant_postmake