Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/lib/udev/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/usr/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

Zerion Mini Shell 1.0