3
# This is a hook for live-build(7) to install madwifi drivers
4
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
7
# Note: This hook requires packages from the contrib category. Make sure you enabled
8
# it in your configuration.
10
apt-get install --yes build-essential
12
# Building kernel module
13
which module-assistant || apt-get install --yes module-assistant
14
module-assistant update
16
for KERNEL in /boot/vmlinuz-*
18
VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
20
module-assistant --non-inter --quiet auto-install madwifi -l ${VERSION}
23
module-assistant clean madwifi
25
# Installing additional stuff
26
apt-get install --yes madwifi-tools