2021-10-05 16:01:42 +02:00
|
|
|
#!/usr/bin/env bash
|
2023-01-27 08:08:28 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2021-10-05 16:01:42 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
build ()
|
|
|
|
{
|
2022-02-02 16:07:04 +01:00
|
|
|
add_checked_modules -f 'nfp' -f 'liquidio' -f 'mellanox' -f 'wireless' -f 'bnx2x' -f 'bna' -f 'softing_cs' -f 'qed' '/drivers/net/'
|
2023-01-21 10:17:35 +01:00
|
|
|
map add_binary ip getent ping wget
|
2021-10-05 16:01:42 +02:00
|
|
|
# start dhcpcd on startup
|
2022-12-07 12:26:17 +01:00
|
|
|
add_symlink "/etc/systemd/system/multi-user.target.wants/systemd-networkd.service" "/usr/lib/systemd/system/systemd-networkd.service"
|
2022-12-09 12:32:54 +01:00
|
|
|
add_symlink "/etc/systemd/system/multi-user.target.wants/systemd-resolved.service" "/usr/lib/systemd/system/systemd-resolved.service"
|
2022-12-07 12:39:43 +01:00
|
|
|
add_file "/usr/share/archboot/net/etc/systemd/network/10-wired-auto-dhcp.network" "/etc/systemd/network/10-wired-auto-dhcp.network"
|
2022-12-15 14:45:10 +01:00
|
|
|
add_file /etc/wgetrc
|
2021-10-05 16:01:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2022-01-31 11:16:04 +01:00
|
|
|
This hook includes the basic network on an archboot image.
|
2021-10-05 16:01:42 +02:00
|
|
|
HELPEOF
|
|
|
|
}
|
2023-01-27 08:08:28 +01:00
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|