2012-02-03 15:13:37 +01:00
|
|
|
#!/bin/bash
|
2011-11-28 16:28:03 +01:00
|
|
|
|
2012-02-03 15:13:37 +01:00
|
|
|
build() {
|
2012-05-16 20:52:55 +02:00
|
|
|
add_checked_modules -f "(irda|phy|wimax|wireless|ppp_|plip|pppoe)" "/drivers/net/"
|
2011-11-28 16:28:03 +01:00
|
|
|
|
2012-05-16 20:52:55 +02:00
|
|
|
add_runscript
|
2011-11-28 16:28:03 +01:00
|
|
|
|
2012-05-03 05:18:06 +02:00
|
|
|
add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig
|
2011-11-28 16:28:03 +01:00
|
|
|
|
|
|
|
# Add hosts support files+dns
|
2011-11-29 13:39:30 +01:00
|
|
|
add_symlink /lib/libnss_files.so.2 $(readlink /lib/libnss_files.so.2)
|
2011-11-28 16:28:03 +01:00
|
|
|
add_binary $(readlink -f /lib/libnss_files.so.2)
|
2011-11-29 13:39:30 +01:00
|
|
|
add_symlink /lib/libnss_dns.so.2 $(readlink /lib/libnss_dns.so.2)
|
2011-11-28 16:28:03 +01:00
|
|
|
add_binary $(readlink -f /lib/libnss_dns.so.2)
|
2012-02-03 15:13:37 +01:00
|
|
|
|
|
|
|
add_dir /etc
|
2011-11-28 16:28:03 +01:00
|
|
|
echo "hosts: files dns" > $BUILDROOT/etc/nsswitch.conf
|
2011-11-28 16:28:03 +01:00
|
|
|
}
|
|
|
|
|
2012-02-03 15:13:37 +01:00
|
|
|
help() {
|
2011-11-28 16:28:03 +01:00
|
|
|
cat<<HELPEOF
|
|
|
|
This hook loads the necessary modules for boot via PXE.
|
|
|
|
HELPEOF
|
|
|
|
}
|
2012-02-03 15:13:37 +01:00
|
|
|
|
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|