????

Your IP : 3.15.198.240


Current Path : /proc/self/root/proc/self/root/proc/self/root/proc/thread-self/root/lib/udev/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/self/root/proc/thread-self/root/lib/udev/tascam_fpga

#!/bin/sh
# load the firmware into Tascam USB devices (FPGA design),
# start appropriate control application.

prefix=/usr
exec_prefix=/usr

LOADER=/usr/bin/usx2yloader
CONTROLLER=NOTUSED

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

case $PRODUCT in
1604/8001/*)
	CONTROLLER=/usr/bin/us428control
	;;
1604/8005/*)
	CONTROLLER=/usr/bin/us428control
	;;
*)
	;;
esac

if [ $CONTROLLER != NOTUSED ]; 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

exit 0