2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2023-01-27 08:08:28 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
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
|
|
|
{
|
2023-05-01 19:27:41 +02:00
|
|
|
add_all_modules -f '_cs' '/net/wireless/|/net/ieee80211/|/net/mac80211/'
|
2022-10-14 12:18:14 +02:00
|
|
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
|
|
|
# add broadcom wl support
|
|
|
|
add_module 'wl.ko'
|
|
|
|
map add_file "/usr/lib/modprobe.d/broadcom-wl.conf" \
|
|
|
|
"/usr/share/licenses/broadcom-wl/LICENSE"
|
|
|
|
fi
|
2022-12-10 15:26:45 +01:00
|
|
|
# start iwd service
|
|
|
|
add_symlink "/etc/systemd/system/multi-user.target.wants/iwd.service" "/usr/lib/systemd/system/iwd.service"
|
2022-12-12 20:35:11 +01:00
|
|
|
map add_binary iw set-wireless-regdom rfkill hwsim iwctl iwmon set-wireless-regdom
|
2022-12-10 08:49:53 +01:00
|
|
|
# add iwd and ead daemon
|
2022-12-10 22:57:21 +01:00
|
|
|
map add_binary "/usr/lib/iwd/iwd" "/usr/lib/iwd/ead"
|
2022-12-13 17:39:00 +01:00
|
|
|
# add hwsim helper script
|
|
|
|
add_binary archboot-hwsim.sh
|
2009-01-01 12:50:57 +01:00
|
|
|
# crda support
|
2022-03-31 08:26:12 +02:00
|
|
|
map add_file "/etc/conf.d/wireless-regdom" "/usr/lib/crda/regulatory.bin" \
|
|
|
|
"/usr/lib/crda/pubkeys/sforshee.key.pub.pem"
|
2009-05-08 08:05:45 +02:00
|
|
|
# fixing licenses
|
2022-04-29 06:50:39 +02:00
|
|
|
map add_file "/usr/share/licenses/expat/COPYING" "/usr/share/licenses/wireless-regdb/LICENSE"
|
2007-10-22 07:56:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2021-10-04 11:13:50 +02:00
|
|
|
This hook includes wireless on an archboot image.
|
2007-10-22 07:56:38 +02:00
|
|
|
HELPEOF
|
|
|
|
}
|
2023-01-27 08:08:28 +01:00
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|