2007-02-22 23:46:50 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
install ()
|
|
|
|
{
|
|
|
|
MODULES=" $(checked_modules "/drivers/net/") "
|
|
|
|
|
2008-03-22 18:45:08 +01:00
|
|
|
BINARIES="ping ping6 route nslookup telnet ssh"
|
2007-02-22 23:46:50 +01:00
|
|
|
FILES=""
|
|
|
|
SCRIPT=""
|
|
|
|
add_file "/sbin/dhcpcd"
|
|
|
|
add_file "/sbin/ifenslave"
|
|
|
|
add_file "/usr/sbin/brctl"
|
|
|
|
add_file "/etc/rc.d/network"
|
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"
|
2007-02-22 23:46:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook includes the network on an arch boot image.
|
|
|
|
HELPEOF
|
|
|
|
}
|