freebsd-dev/usr.sbin/xntpd/refclocks/rclk.LOCAL_CLOCK
1993-12-21 18:36:48 +00:00

23 lines
427 B
Bash

#!/bin/sh -
CMD="$1"
shift;
. refclocks/setup
case "$CMD" in
info)
echo " LOCAL_CLOCK - use local clock as reference"
;;
check)
if check "$RCONFIG" '$0 ~ /LOCAL_CLOCK/'; then
echo "LOCAL_CLOCK - local clock"
fi
;;
config)
if check "$REFCONF" '$0 ~ /LOCAL_CLOCK/' ||
( [ ! "$REFCONF" ] && query "Include local clock reference support (LOCAL_CLOCK)" y); then
echo "-DLOCAL_CLOCK" >> $RCONFIG
fi
;;
esac