#!/bin/sh
#
# modprobe post-install script for alsa

kernel_is_2_6_or_above()
{
	case "$(uname -r)" in
		1.*|2.[012345]*) return 1 ;;
		*) return 0 ;;
	esac
}

udev_is_active()
{
	test -e /dev/.udev.tdb || test -d /dev/.udevdb || return 1
	kernel_is_2_6_or_above || return 1
	return 0
}

if udev_is_active ; then
	# Stuff is done in a /etc/dev.d/ script instead
	exit 0
fi

case "$1" in
snd-emu8000-synth)
	# module is not a sound card driver with a mixer
	:
	;;
*)
	# module is a sound card driver with a mixer
	/etc/init.d/alsa start || :
	;;
esac
