Package: adjtimex
Version: 1.21.1-1
Severity: wishlist
Tags: patch

Just for fun, I came up with the following, which may be useful to
someone else.  The "1 /" is in there to discard fractional digits.

You can substitute backquotes `...` for $(...) for portability to
older shells.

DRIFT=/var/lib/ntp/ntp.drift
test -f "$DRIFT" &&
        FREQ=$({ tr \\- _ < "$DRIFT"; echo " 65536 * 0.5 + 1 / p"; } | dc)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to