aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/xntpd/refclocks/rclk.GOES
blob: cb87c638987ef91a51798f68858c822b09d4b914 (plain) (blame)
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
30
31
32
#!/bin/sh -
CMD="$1"
shift;

. refclocks/setup

case "$CMD" in
  info)
	echo "	GOES		- Kinemetrics/TrueTime 468-DC GOES receiver"
	;;
  check)
	if check "$RCONFIG" '$0 ~ /GOES/'; then
	  echo "GOES		- Kinemetrics/TrueTime 468-DC GOES receiver"
	fi
	;;
  config)
	if check "$REFCONF" '$0 ~ /GOES/' ||
	   ( [ ! "$REFCONF" ] && query "Include Kinemetrics/TrueTime 468-DC GOES receiver (GOES)" n); then
          if check "$PPSFEATURES" '$0 ~ /CD/'; then
	    if [ "$PPSOK" -eq 1 ] &&
	       (check "$REFCONF" '$0 ~ /GOESPPS/' ||
	       ( [ ! "$REFCONF" ] && query "	Use GOES for PPS" n)); then
		  echo "-DGOESPPS" >> $RCONFIG
	    else
	      echo "-DGOES" >> $RCONFIG
	    fi
          else
	    echo "-DGOES" >> $RCONFIG
          fi
	fi
	;;
esac