5 # Install modules managed by module-assistant
7 echo "Installing modules managed by module-assistant"
9 MA
="module-assistant --text-mode --non-inter"
13 apt-get
install --yes build-essential module-assistant debhelper
20 for KERNEL
in /boot
/vmlinuz-
* ; do
21 VERSION
="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
22 echo "module-assistant: installing module ${MODULE} for kernel ${VERSION}"
23 $MA --quiet auto-install
${MODULE} -l ${VERSION}
26 apt-get
--yes purge
${MODULE}
35 if [ -n "${MODULES}" ] ; then
37 ma_install_modules
${MODULES}