diff options
Diffstat (limited to 'examples/hooks/rt2570.sh')
-rwxr-xr-x | examples/hooks/rt2570.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/hooks/rt2570.sh b/examples/hooks/rt2570.sh index da4d23716..90c311833 100755 --- a/examples/hooks/rt2570.sh +++ b/examples/hooks/rt2570.sh @@ -2,10 +2,15 @@ # This is a hook for live-helper(7) to install ralink rt2570 drivers # To enable it, copy this hook into your config/chroot_local-hooks directory. -# -# FIXME: it runs in interactive mode which module-assistant || apt-get install --yes module-assistant module-assistant update -module-assistant auto-install rt2570-source + +for KERNEL in /boot/vmlinuz-* +do + VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')" + + module-assistant --non-inter --quiet auto-install rt2570-source -l ${VERSION} +done + module-assistant clean rt2570-source |