#!/bin/sh
#called from 'connect' script if successful connection.
#mscw is Multiple Sound Card Wizard.
#passed param is device address.

[ "$1" == "" ] && exit 1
DEVICEID="$1"
[ ! -e /var/local/bluepup/reg-info.${DEVICEID} ] && exit 1

#probably good to check that it is connected also...
#...um, maybe not. 

AUDIOflg="$(grep -o 'Icon:.*audio-card' /var/local/bluepup/reg-info.${DEVICEID})"
[ "$AUDIOflg" == "" ] && exit 0

#this is it...
mscw

###end###
