X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fbt-audio;h=d06638ab6214f5e314d22754a3d7a4e498df8c1b;hb=0491d300d93d6f345aa280c09cfcf3139d5cd4fb;hp=b8ff03b7365127980d80b98ecaf4bc43e13bdc8f;hpb=f5901da1b16f5e8ffc71298c2adade8c842328cf;p=grml-scripts.git diff --git a/usr_sbin/bt-audio b/usr_sbin/bt-audio index b8ff03b..d06638a 100755 --- a/usr_sbin/bt-audio +++ b/usr_sbin/bt-audio @@ -4,7 +4,7 @@ # 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] +# Latest change: Mon Jän 14 20:36:21 CET 2008 [mika] ################################################################################ . /etc/grml/lsb-functions @@ -12,6 +12,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'