X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=usr_sbin%2Fbt-audio;h=a6bc8c8790bafd58a56904f9dd67ab21b993ee9a;hb=9fef74081f53d30174118872324fa62d4a8145b5;hp=b8ff03b7365127980d80b98ecaf4bc43e13bdc8f;hpb=f5901da1b16f5e8ffc71298c2adade8c842328cf;p=grml-scripts-core.git diff --git a/usr_sbin/bt-audio b/usr_sbin/bt-audio index b8ff03b..a6bc8c8 100755 --- a/usr_sbin/bt-audio +++ b/usr_sbin/bt-audio @@ -4,7 +4,6 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Son Aug 06 20:30:34 CEST 2006 [mika] ################################################################################ . /etc/grml/lsb-functions @@ -12,6 +11,13 @@ check4root || exit 1 +if ! modprobe -l | grep snd-bt-sco ; then + eerror "Sorry, could not find kernel module snd-bt-sco. Exiting." ; eend 1 + ewarn "The kernel version you are using either does not support the snd-bt-sco module..." + ewarn "... yet or you should take a look at Debian package bluez-audio." + exit 1 +fi + HCID_CONF='/etc/bluetooth/bt_headset.conf' [ -n "$PIN" ] || PIN='0000'