archboot/lib/initcpio/install/arch_net

64 lines
2.9 KiB
Text
Raw Normal View History

2007-02-22 23:46:50 +01:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
2011-06-10 08:26:54 +02:00
build ()
2007-02-22 23:46:50 +01:00
{
MODULES=" $(checked_modules "/drivers/net/" | grep -ve "wireless") "
# add staging modules
2009-12-06 10:00:45 +01:00
STAGING="et131x"
for i in $STAGING; do
2009-04-19 22:26:28 +02:00
MODULES="$MODULES $(checked_modules "/drivers/staging/$i")"
done
2011-03-25 08:55:49 +01:00
BINARIES="dnsdomainname domainname netstat nisdomainname ypdomainname arp ipmaddr iptunnel mii-tool nameif plipconfig rarp slattach ping ping6 traceroute traceroute6 arping clockdiff rarpd rdisc tftpd tracepath tracepath6 route dig host nslookup nsupdate telnet ssh arpd ctstat genl ifcfg ifstat ip lnstat nstat routef routel rtacct rtmon rtpr rtstat ss tc dhclient ifplugd ifplugstatus"
2007-02-22 23:46:50 +01:00
FILES=""
2009-05-24 15:47:17 +02:00
SCRIPT=""
2007-02-22 23:46:50 +01:00
add_file "/sbin/dhcpcd"
add_file "/sbin/ifenslave"
add_file "/usr/sbin/brctl"
add_file "/etc/rc.d/network"
2011-05-11 15:54:48 +02:00
add_file "/etc/rc.d/netfs"
2008-12-06 19:12:19 +01:00
add_file "/usr/share/archboot/net/etc/conf.d/dhcpcd" "/etc/conf.d/dhcpcd"
add_file "/usr/share/archboot/net/etc/conf.d/bonding" "/etc/conf.d/bonding"
add_file "/usr/share/archboot/net/etc/conf.d/bridges" "/etc/conf.d/bridges"
2008-10-20 22:39:25 +02:00
for i in $(find /usr/lib/dhcpcd -type f); do
add_file "$i"
done
2008-12-06 19:12:19 +01:00
add_file "/usr/share/archboot/net/etc/dhcpcd.conf" "/etc/dhcpcd.conf"
2008-10-20 22:39:25 +02:00
add_dir "/var/lib/dhcpcd"
2009-12-06 23:15:50 +01:00
add_file "/usr/lib/tc/q_atm.so"
2009-12-06 19:47:51 +01:00
add_file "/usr/share/tc/experimental.dist"
add_file "/usr/share/tc/normal.dist"
add_file "/usr/share/tc/pareto.dist"
add_file "/usr/share/tc/paretonormal.dist"
add_file "/usr/share/archboot/net/etc/iproute2/ematch_map" "/etc/iproute2/ematch_map"
add_file "/usr/share/archboot/net/etc/iproute2/rt_dsfield" "/etc/iproute2/rt_dsfield"
add_file "/usr/share/archboot/net/etc/iproute2/rt_protos" "/etc/iproute2/rt_protos"
add_file "/usr/share/archboot/net/etc/iproute2/rt_realms" "/etc/iproute2/rt_realms"
add_file "/usr/share/archboot/net/etc/iproute2/rt_scopes" "/etc/iproute2/rt_scopes"
add_file "/usr/share/archboot/net/etc/iproute2/rt_tables" "/etc/iproute2/rt_tables"
# add dhclient support
add_file "/sbin/dhclient-script"
add_dir "/var/lib/dhclient"
add_dir "/var/state/dhcp"
# add ifplugd support
add_file "/etc/rc.d/ifplugd"
2009-11-26 20:27:32 +01:00
add_file "/etc/ifplugd/ifplugd.action"
add_file "/usr/share/archboot/net/etc/ifplugd/ifplugd.conf" "/etc/ifplugd/ifplugd.conf"
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"
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"
add_file "/usr/share/licenses/sqlite3/license.txt"
add_file "/usr/share/licenses/tcp_wrappers/license.txt"
2007-02-22 23:46:50 +01:00
}
help ()
{
cat<<HELPEOF
This hook includes the network on an arch boot image.
HELPEOF
}