2008-03-16 22:57:21 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
install ()
|
|
|
|
{
|
|
|
|
MODULES=""
|
2009-05-24 15:47:17 +02:00
|
|
|
BINARIES="netcfg-auto-wireless netcfg-menu netcfg2 netcfg"
|
2008-03-16 22:57:21 +01:00
|
|
|
FILES=""
|
|
|
|
SCRIPT=""
|
|
|
|
for i in /usr/lib/network/*; do
|
2009-05-20 10:08:43 +02:00
|
|
|
[ -f $i ] && add_file $i
|
2009-05-19 07:12:00 +02:00
|
|
|
done
|
|
|
|
for i in /usr/lib/network/connections/*; do
|
|
|
|
add_file $i
|
2008-03-16 22:57:21 +01:00
|
|
|
done
|
|
|
|
add_dir "/var/run/network/interfaces"
|
|
|
|
add_dir "/var/run/network/profiles"
|
|
|
|
for i in /etc/network.d/examples/*; do
|
|
|
|
add_file $i
|
|
|
|
done
|
|
|
|
add_file "/etc/rc.d/net-profiles"
|
|
|
|
add_file "/etc/rc.d/net-rename"
|
2008-10-20 22:39:25 +02:00
|
|
|
add_file "/etc/rc.d/net-auto"
|
2008-12-06 19:12:19 +01:00
|
|
|
add_file "/usr/share/archboot/netcfg/etc/iftab" "/etc/iftab"
|
2009-05-08 08:05:45 +02:00
|
|
|
# fix licenses
|
|
|
|
add_file "/usr/share/licenses/netcfg/LICENSE"
|
2008-03-16 22:57:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook includes the netcfg on an arch boot image.
|
|
|
|
HELPEOF
|
|
|
|
}
|