summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/refclocks/rclk.OMEGA
blob: 62094e46130d75035416a387077bed826704c206 (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
25
26
27
28
29
#!/bin/sh -
CMD="$1"
shift;

. refclocks/setup

case "$CMD" in
  info)
	echo "	OMEGA		- Kinemetrics/TrueTime OM-DC OMEGA receiver"
	;;
  check)
	if check "$RCONFIG" '$0 ~ /OMEGA/'; then
	  echo "OMEGA		- Kinemetrics/TrueTime OM-DC OMEGA receiver"
	fi
	;;
  config)
	if check "$REFCONF" '$0 ~ /OMEGA/' ||
	   ( [ ! "$REFCONF" ] && query "Include Kinemetrics/TrueTime OM-DC OMEGA receiver (OMEGA)" n); then
          if check "$PPSFEATURES" '$0 ~ /CD/' &&
	     [ "$PPSOK" -eq 1 ] &&
             (check "$REFCONF" '$0 ~ /OMEGAPPS/' ||
	     ( [ ! "$REFCONF" ] && query "	Use OMEGA for PPS" n)); then
                 echo "-DOMEGAPPS" >> $RCONFIG
	  else
	    echo "-DOMEGA" >> $RCONFIG
          fi
	fi
	;;
esac
OpenPOWER on IntegriCloud