archboot/usr/lib/initcpio/install/archboot_net_common

21 lines
606 B
Text
Raw Normal View History

#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
2023-05-01 21:32:18 +02:00
add_all_modules -f '/net/wireless/|/net/ieee80211/|/net/mac80211/|_cs|b44' '/drivers/net/ethernet|/net/ipv4|/net/ipv6'
2023-01-21 10:17:35 +01:00
map add_binary ip getent ping wget
# start dhcpcd on startup
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"
add_file /etc/wgetrc
}
help ()
{
cat<<HELPEOF
This hook includes the basic network on an archboot image.
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et: