archboot/usr/lib/initcpio/install/arch_net

61 lines
2.1 KiB
Text
Raw Normal View History

2012-05-27 12:04:03 +02:00
#!/bin/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
{
2012-05-27 12:04:03 +02:00
add_checked_modules -f 'wireless' '/drivers/net/'
# add staging modules
2009-12-06 10:00:45 +01:00
STAGING="et131x"
for i in $STAGING; do
2012-05-27 12:04:03 +02:00
add_checked_modules "/drivers/staging/$i"
done
2013-05-22 10:08:36 +02:00
apps="dnsdomainname domainname netstat nisdomainname ypdomainname arp ipmaddr iptunnel mii-tool nameif plipconfig rarp \
slattach traceroute arping clockdiff rarpd rdisc tftpd tracepath tracepath6 route \
dig host nslookup telnet ssh arpd genl ifstat lnstat nstat rtacct rtmon ss tc dhclient ifplugd ifplugstatus ip ping ping6"
2012-05-27 12:04:03 +02:00
for i in $apps; do
add_binary "$i"
done
2013-05-21 09:59:51 +02:00
appfiles="/usr/sbin/ifcfg /usr/sbin/routef /usr/sbin/routel /usr/sbin/rtpr /sbin/dhcpcd /usr/bin/ifenslave /usr/sbin/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
symlinks="/usr/sbin/ctstat /usr/sbin/rtstat"
for i in $symlinks; do
add_binary "$(which $(basename $(readlink "$i")))"
add_symlink "$i" "$(which $(basename $(readlink "$i")))"
done
2008-10-20 22:39:25 +02:00
for i in $(find /usr/lib/dhcpcd -type f); do
add_file "$i"
done
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"
2012-04-22 20:38:54 +02:00
# add dnssec-anchors
add_file "/etc/trusted-key.key"
# add dhclient support
add_file "/sbin/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"
2013-03-27 15:52:30 +01:00
add_file "/usr/share/licenses/dnsutils/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
This hook includes the network on an arch boot image.
HELPEOF
}