archboot/usr/lib/initcpio/install/archboot_wireless

35 lines
1.2 KiB
Text
Raw Normal View History

#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
2007-10-22 07:56:38 +02:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
2007-10-22 07:56:38 +02:00
{
2023-05-01 21:32:54 +02:00
add_all_modules -f '_cs|b43' '/net/wireless/|/net/ieee80211/|/net/mac80211/'
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
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
}
# vim: set ft=sh ts=4 sw=4 et: