hwclock (281B)
1 #!/bin/sh 2 3 . /bin/svc.d/default/hwclock 4 5 case $1 in 6 -e) exit 1;; # one-shot 7 -s) hwclock ${PARAMS_START} ${PARAMS} >/dev/null 2>&1 || exit 2;; 8 -k) hwclock ${PARAMS_STOP} ${PARAMS} >/dev/null 2>&1 || exit 2;; 9 -r) $0 -k && \ 10 $0 -s;; 11 *) echo "usage: $0 -ekrs" >&2 12 exit 2 13 esac