File: adjtimex

package info (click to toggle)
adjtimex 1.10-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 244 kB
  • ctags: 134
  • sloc: ansic: 1,648; sh: 255; makefile: 84
file content (31 lines) | stat: -rw-r--r-- 485 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#
# Run ADJTIMEX at startup.

test -x /sbin/adjtimex  || exit 0
 
cfg=/etc/adjtimex.conf

TICK=10000
FREQ=0

if [ -f $cfg ]; then
  . $cfg
fi

case "$1" in
  start)
    echo -n "Regulating system time... "
    /sbin/adjtimex -tick $TICK -frequency $FREQ
    echo "done."
    ;;
  stop|restart|force-reload)
    ;;
  *)
    echo "/etc/init.d/adjtimex: unknown command $1"
    echo "Usage: /etc/init.d/adjtimex {start|stop|restart|force-reload}"
    exit 1
    ;;
esac

exit 0