2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2007-10-22 07:56:38 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2007-10-22 07:56:38 +02:00
|
|
|
{
|
2012-05-27 21:54:46 +02:00
|
|
|
add_checked_modules '/drivers/net/wireless/|/net/wireless/|/net/ieee80211/|/net/mac80211/'
|
2018-06-22 11:35:00 +02:00
|
|
|
# add broadcom wl support
|
|
|
|
add_module 'wl.ko'
|
2013-05-22 11:49:52 +02:00
|
|
|
apps="iwconfig iwevent iwgetid iwlist iwpriv iwspy ifrename b43-fwcutter wpa_cli wpa_passphrase \
|
2019-03-16 11:39:46 +01:00
|
|
|
wpa_supplicant iw crda regdbdump rfkill"
|
2012-05-27 17:12:28 +02:00
|
|
|
for i in $apps; do
|
|
|
|
add_binary "$i"
|
2009-04-10 10:56:51 +02:00
|
|
|
done
|
2017-11-26 19:58:10 +01:00
|
|
|
add_dir "/etc/wpa_supplicant"
|
2009-01-01 12:50:57 +01:00
|
|
|
# crda support
|
2012-08-24 08:24:01 +02:00
|
|
|
add_file "/usr/bin/set-wireless-regdom"
|
2012-08-16 08:02:05 +02:00
|
|
|
add_file "/etc/conf.d/wireless-regdom"
|
2009-01-01 12:50:57 +01:00
|
|
|
add_file "/usr/lib/crda/regulatory.bin"
|
2009-05-08 08:05:45 +02:00
|
|
|
# fixing licenses
|
|
|
|
add_file "/usr/share/licenses/expat/COPYING"
|
|
|
|
add_file "/usr/share/licenses/crda/LICENSE"
|
|
|
|
add_file "/usr/share/licenses/wireless-regdb/LICENSE"
|
2021-08-08 18:49:23 +02:00
|
|
|
add_file "/usr/share/licenses/broadcom-wl/LICENSE"
|
2007-10-22 07:56:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook includes wireless on an arch boot image.
|
|
|
|
HELPEOF
|
|
|
|
}
|