25 lines
442 B
Bash
25 lines
442 B
Bash
#!/bin/sh -
|
|
CMD="$1"
|
|
shift;
|
|
|
|
. refclocks/setup
|
|
|
|
if check "$DEFS" '$0 ~ /SYS_SUNOS4/'; then
|
|
case "$CMD" in
|
|
info)
|
|
echo " CHU - CHU via shortwave radio"
|
|
;;
|
|
check)
|
|
if check "$RCONFIG" '$0 ~ /CHU/'; then
|
|
echo "CHU - CHU via shortwave radio"
|
|
fi
|
|
;;
|
|
config)
|
|
if check "$REFCONF" '$0 ~ /CHU/' ||
|
|
( [ ! "$REFCONF" ] && query "Include CHU via shortwave radio (CHU)" n); then
|
|
echo "-DCHU" >> $RCONFIG
|
|
fi
|
|
;;
|
|
esac
|
|
fi
|