archboot/usr/lib/initcpio/install/archboot_net_common

20 lines
788 B
Text
Raw Normal View History

#!/usr/bin/env bash
# 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/'
map add_binary route ip
# start dhcpcd on startup
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"
}
help ()
{
cat<<HELPEOF
This hook includes the basic network on an archboot image.
HELPEOF
}