#!/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 || 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 udev-run script instead
	exit 0
fi

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