#!/bin/bash #set -x # Save this file in the folder with the hpklinux-source archive. # ie. hpklinux-4.04.07.tar.bz2 # Make it executable and run with ./build-hpklinux.sh # Get our kernel name to use below kernel=$(uname -r) # Copy the audio science driver to the place that Module Assistant expects it to be. cp ./hpklinux-*.*.*.tar.bz2 /usr/src/hpklinux-source.tar.bz2 module-assistant prepare module-assistant update # Build the hpklinux module module-assistant -v -t -l$kernel -k/usr/src/linux-headers-$kernel build hpklinux # Install the module module-assistant install hpklinux