25 lines
497 B
Bash
25 lines
497 B
Bash
#!/bin/sh -
|
|
CMD="$1"
|
|
shift;
|
|
|
|
. refclocks/setup
|
|
|
|
if check "$DEFS" '$0 ~ /SYS_SUNOS/'; then
|
|
case "$CMD" in
|
|
info)
|
|
echo " TPRO - KSI/Odetics TPRO-S IRIG-B timecode reader"
|
|
;;
|
|
check)
|
|
if check "$RCONFIG" '$0 ~ /TPRO/'; then
|
|
echo "TPRO - KSI/Odetics TPRO-S IRIG-B timecode reader"
|
|
fi
|
|
;;
|
|
config)
|
|
if check "$REFCONF" '$0 ~ /TPRO/' ||
|
|
( [ ! "$REFCONF" ] && query "Include KSI/Odetics TPRO-S IRIG-B timecode reader (TPRO)" n); then
|
|
echo "-DTPRO" >> $RCONFIG
|
|
fi
|
|
;;
|
|
esac
|
|
fi
|