#!/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 belowkernel=$(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.bz2module-assistant preparemodule-assistant update# Build the hpklinux modulemodule-assistant -v -t -l$kernel -k/usr/src/linux-headers-$kernel build hpklinux# Install the modulemodule-assistant install hpklinux