2007-09-23 08:05:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-09-02 12:45:03 +00:00
|
|
|
# This is a hook for live-build(7) to install ralink rt2570 drivers
|
2008-12-02 15:42:03 -01:00
|
|
|
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
|
|
|
|
# directory.
|
2007-09-23 08:05:09 +00:00
|
|
|
|
2008-12-02 15:44:46 -01:00
|
|
|
apt-get install --yes build-essential
|
|
|
|
|
2007-09-23 08:05:09 +00:00
|
|
|
which module-assistant || apt-get install --yes module-assistant
|
|
|
|
module-assistant update
|
2008-04-10 10:43:50 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2007-09-23 08:05:09 +00:00
|
|
|
module-assistant clean rt2570-source
|