summaryrefslogtreecommitdiff
path: root/archiso/install/archiso_pxe_nbd
diff options
context:
space:
mode:
Diffstat (limited to 'archiso/install/archiso_pxe_nbd')
-rw-r--r--archiso/install/archiso_pxe_nbd22
1 files changed, 8 insertions, 14 deletions
diff --git a/archiso/install/archiso_pxe_nbd b/archiso/install/archiso_pxe_nbd
index c8ba1a4..1ee3910 100644
--- a/archiso/install/archiso_pxe_nbd
+++ b/archiso/install/archiso_pxe_nbd
@@ -1,24 +1,18 @@
-# vim: set ft=sh:
+#!/bin/bash
-build ()
-{
+build() {
MODULES="nbd"
- MODULES="${MODULES} $(comm -2 -3 <(checked_modules "/drivers/net/" | sort) \
- <(find $MODULEDIR/kernel/drivers/net/{irda,phy,wimax,wireless} \
- -name '*.ko*' \
- -exec bash -c 'printf "%s\n" "${@%%.ko*}" | sed "s@.*/@@;s@-@_@" | sort' _ {} +) \
- | grep -v -e 'ppp_' -e 'plip' -e 'pppoe')"
- BINARIES=""
- FILES=""
SCRIPT="archiso_pxe_nbd"
- add_binary "/usr/sbin/nbd-client" "/bin/nbd-client"
- add_binary "/lib/initcpio/ipconfig" "/bin/ipconfig"
+ add_binary nbd-client
+
+ add_file /usr/lib/initcpio/archiso_pxe_nbd /archiso_pxe_nbd
}
-help ()
-{
+help() {
cat<<HELPEOF
This hook loads the necessary modules for boot via PXE and NBD.
HELPEOF
}
+
+# vim: set ft=sh ts=4 sw=4 et: