freebsd-dev/usr.sbin/xntpd/refclocks/rclk.NMEA

24 lines
583 B
Plaintext
Raw Normal View History

1994-09-29 23:04:24 +00:00
case "$CMD" in
info)
echo " NMEA - NMEA GPS station clock"
;;
check)
if check "$RCONFIG" '$0 ~ /NMEA/'; then
echo "NMEA - NMEA GPS station clock"
fi
;;
config)
if check "$REFCONF" '$0 ~ /NMEA/' ||
( [ ! "$REFCONF" ] && query "Include NMEA GPS station clock (NMEA)" n); then
if check "$PPSFEATURES" '$0 ~ /CD/' &&
[ "$PPSOK" -eq 1 ] &&
(check "$REFCONF" '$0 ~ /NMEAPPS/' ||
( [ ! "$REFCONF" ] && query " Use NMEA for PPS" n)); then
echo "-DNMEAPPS" >> $RCONFIG
else
echo "-DNMEA" >> $RCONFIG
fi
fi
;;
esac