Initial revision
[fake-hwclock.git] / debian / fake-hwclock.init
1 #!/bin/sh
2 ### BEGIN INIT INFO
3 # Provides:          fake-hwclock
4 # Required-Start:
5 # Required-Stop:     umountroot
6 # Should-Stop:       
7 # Default-Start:
8 # Default-Stop:      0 1 6
9 # Short-Description: Save the current clock at shutdown
10 # Description:       
11 ### END INIT INFO
12
13 set -e
14
15 case "${1:-}" in
16   stop|reload|restart|force-reload)
17         echo "Stopping fake hwclock: saving system time."
18         /bin/fake-hwclock save;;
19
20   start|status)
21         ;;
22
23   *)
24         echo "Usage: ${0:-} {start|stop|status|restart|reload|force-reload}" >&2
25         exit 1
26         ;;
27 esac