6a8b94819c
This package provides the Universal Adapter user-space utility that is used to receive commands from the Manufacturing Tool using the Freescale UTP Protocol. It requires a Freescale/NXP kernels whose configuration contains the CONFIG_FSL_UTP option. The /fat file is provided as a bootargs to the g_mass_storage driver from U-Boot, see: http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/ configs/mx6sabre_common.h?h=imx_v2015.04_3.14.52_1.1.0_ga#n116 Init scripts are provided so that the tool starts automatically at bootup. Tested on Nitrogen6_MAX + MFGTools. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> [Thomas: - test return value from start-stop⁻daemon in init script, and reindent the init script - fix dependency of the comment - rewrap Config.in help text.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
28 lines
451 B
Bash
28 lines
451 B
Bash
#!/bin/sh
|
|
|
|
NAME=uuc
|
|
DAEMON=/usr/bin/$NAME
|
|
|
|
case "$1" in
|
|
start)
|
|
printf "Starting $NAME: "
|
|
start-stop-daemon -S -q -b -p /var/run/${NAME}.pid -x $DAEMON
|
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
|
;;
|
|
stop)
|
|
printf "Stopping $NAME: "
|
|
start-stop-daemon -K -q -p /var/run/${NAME}.pid
|
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
|
;;
|
|
restart|reload)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|