Karsten Wiese <annabellesgarden@yahoo.de>:

- start us428control only for specific devices.
This commit is contained in:
Takashi Iwai 2003-12-04 09:41:10 +00:00
parent 240366e9b4
commit 2693a448db

View file

@ -1,18 +1,45 @@
#!/bin/sh #!/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@ prefix=@prefix@
exec_prefix=@exec_prefix@ exec_prefix=@exec_prefix@
LOADER=@bindir@/usx2yloader LOADER=@bindir@/usx2yloader
CONTROLLER=
if [ -x /usr/bin/logger ]; then if [ -x $LOADER ]; then
/usr/bin/logger -t $0 "calling $LOADER for $DEVICE" 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 fi
$LOADER
if [ -x @bindir@/us428control ]; then case $PRODUCT in
@bindir@/us428control & 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 fi
if [ -x /usr/bin/logger ]; then if [ -x /usr/bin/logger ]; then
/usr/bin/logger -t $0 "leaving" /usr/bin/logger -t $0 "leaving"
fi fi