mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Karsten Wiese <annabellesgarden@yahoo.de>:
- start us428control only for specific devices.
This commit is contained in:
parent
240366e9b4
commit
2693a448db
1 changed files with 33 additions and 6 deletions
|
|
@ -1,18 +1,45 @@
|
|||
#!/bin/sh
|
||||
# load the firmware into Tascam USB devices (FPGA design)
|
||||
# load the firmware into Tascam USB devices (FPGA design),
|
||||
# start appropriate control application.
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
|
||||
LOADER=@bindir@/usx2yloader
|
||||
CONTROLLER=
|
||||
|
||||
if [ -x /usr/bin/logger ]; then
|
||||
if [ -x $LOADER ]; then
|
||||
if [ -x /usr/bin/logger ]; then
|
||||
/usr/bin/logger -t $0 "calling $LOADER for $DEVICE"
|
||||
fi
|
||||
$LOADER
|
||||
else
|
||||
if [ -x /usr/bin/logger ]; then
|
||||
/usr/bin/logger -t $0 "missing $LOADER for $DEVICE"
|
||||
fi
|
||||
fi
|
||||
$LOADER
|
||||
if [ -x @bindir@/us428control ]; then
|
||||
@bindir@/us428control &
|
||||
|
||||
case $PRODUCT in
|
||||
1604/8001/*)
|
||||
CONTROLLER=@bindir@/us428control
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n $CONTROLLER ]; then
|
||||
if [ -x $CONTROLLER ]; then
|
||||
if [ -x /usr/bin/logger ]; then
|
||||
/usr/bin/logger -t $0 "starting $CONTROLLER for $DEVICE"
|
||||
fi
|
||||
$CONTROLLER &
|
||||
else
|
||||
if [ -x /usr/bin/logger ]; then
|
||||
/usr/bin/logger -t $0 "missing $CONTROLLER for $DEVICE"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -x /usr/bin/logger ]; then
|
||||
/usr/bin/logger -t $0 "leaving"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue