archboot/usr/lib/initcpio/install/archboot_net

59 lines
2.1 KiB
Text
Raw Normal View History

#!/usr/bin/env bash
2007-02-22 23:46:50 +01:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
2007-02-22 23:46:50 +01:00
{
add_checked_modules -f 'nfp' -f 'liquidio' -f 'mellanox' -f 'wireless' '/drivers/net/'
2017-11-27 09:46:16 +01:00
apps="dnsdomainname netstat arp ipmaddr iptunnel mii-tool nameif plipconfig rarp \
slattach traceroute arping clockdiff rarpd rdisc tracepath route \
2022-01-14 14:17:07 +01:00
dig host nslookup telnet ssh arpd genl ifstat lnstat nstat rtacct rtmon ss \
2022-01-30 11:31:54 +01:00
tc dhclient ifplugd ifplugstatus bridge dcb devlink rdma ss tipc vdpa dhcpcd \
2022-01-28 09:16:19 +01:00
ip ping ethtool elinks ctstat rtstat dhcp_lease_time dhcp_release dhcp_release6"
2012-05-27 12:04:03 +02:00
for i in $apps; do
add_binary "$i"
done
2022-01-30 11:31:54 +01:00
appfiles="/usr/bin/routel /usr/bin/brctl"
2012-05-27 21:54:46 +02:00
for i in $appfiles; do
2012-05-27 12:04:03 +02:00
add_file "$i"
done
2008-10-20 22:39:25 +02:00
for i in $(find /usr/lib/dhcpcd -type f); do
add_file "$i"
done
# start dhcpcd on startup
add_symlink "/etc/systemd/system/multi-user.target.wants/dhcpcd.service" "/usr/lib/systemd/system/dhcpcd.service"
add_file "/usr/share/archboot/net/etc/system/dhcpcd@.service.d/no-wait.conf" "/etc/system/dhcpcd@.service.d/no-wait.conf"
2012-08-15 22:23:51 +02:00
add_file "/etc/dhcpcd.conf"
2008-10-20 22:39:25 +02:00
add_dir "/var/lib/dhcpcd"
add_full_dir "/usr/lib/tc"
add_full_dir "/usr/share/tc"
add_full_dir "/etc/iproute2"
# add openssl helper libraries
add_full_dir "/usr/lib/engines"
2012-04-22 20:38:54 +02:00
# add dnssec-anchors
add_file "/etc/trusted-key.key"
# add dhclient support
2013-05-31 15:57:00 +02:00
add_file "/usr/bin/dhclient-script"
add_dir "/var/lib/dhclient"
add_dir "/var/state/dhcp"
# add ifplugd support
add_full_dir "/etc/ifplugd"
2009-05-08 08:05:45 +02:00
# fixing licenses
add_file "/usr/share/licenses/db/LICENSE"
add_file "/usr/share/licenses/dhcpcd/LICENSE"
add_file "/usr/share/licenses/dhclient/LICENSE"
2020-08-15 10:49:30 +02:00
add_file "/usr/share/licenses/bind/LICENSE"
2011-05-09 15:03:19 +02:00
add_file "/usr/share/licenses/krb5/LICENSE"
2009-05-08 08:49:58 +02:00
add_file "/usr/share/licenses/openssh/LICENCE"
2009-05-08 08:05:45 +02:00
add_file "/usr/share/licenses/openssl/LICENSE"
2012-04-18 10:32:09 +02:00
add_file "/usr/share/licenses/sqlite/license.txt"
2012-04-22 20:38:54 +02:00
add_file "/usr/share/licenses/dnssec-anchors/LICENSE"
2007-02-22 23:46:50 +01:00
}
help ()
{
cat<<HELPEOF
2021-10-04 11:13:50 +02:00
This hook includes the network on an archboot image.
2007-02-22 23:46:50 +01:00
HELPEOF
}