mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-19 09:44:30 +01:00
23 lines
427 B
Bash
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
|