blob: e2f9e1afe753f15c46b3680e434ecf6f3792af19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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
|