#!/bin/sh DEFAULT_DRIVE=via686 DRIVE=$1 case "$1" in "") DRIVE=$DEFAULT_DRIVE ;; esac while true; do echo -n "will install drive $DRIVE [yes] " read answer case "${answer}" in [yY] | [yY][eE][sS]) break ;; [nN] | [nN][oO]) exit 1 ;; "") break ;; *) echo "Enter 'yes' or 'no'" ;; esac done make clean # if you change the kernel version this is important ./configure --with-cards=$DRIVE --with-sequencer=yes --with-isapnp=no RETVAL=$? if [ $RETVAL != 0 ]; then exit $RETVAL fi make install ./snddevices modprobe snd-$DRIVE