mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
20 lines
602 B
Bash
20 lines
602 B
Bash
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
build ()
|
|
{
|
|
add_all_modules -f '/net/wireless/|/net/ieee80211/|/net/mac80211/|_cs' '/drivers/net/ethernet|/net/ipv4|/net/ipv6'
|
|
map add_binary ip getent ping wget
|
|
# start dhcpcd on startup
|
|
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:
|