da813e5b9d
* ipconfig cmd writes a file in /tmp that is ready for direct evaluation. We can use this instead of parsing the output, to do this some variable renames are needed. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
29 lines
854 B
Bash
29 lines
854 B
Bash
# vim: set ft=sh:
|
|
|
|
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_dir /tmp
|
|
|
|
add_binary "/usr/sbin/nbd-client" "/bin/nbd-client"
|
|
add_binary "/lib/initcpio/ipconfig" "/bin/ipconfig"
|
|
|
|
add_file "/lib/initcpio/archiso_pxe_nbd" "/archiso_pxe_nbd"
|
|
}
|
|
|
|
help ()
|
|
{
|
|
cat<<HELPEOF
|
|
This hook loads the necessary modules for boot via PXE and NBD.
|
|
HELPEOF
|
|
}
|