summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/refclocks/rclk.TPRO
blob: 74e5545211fce7908053d635ea153ca9eb95035d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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
OpenPOWER on IntegriCloud