1
0
mirror of synced 2026-04-25 03:54:31 +00:00
Files
xen-tools.xen-tools/hooks/debian/15-disable-hwclock
steve efa1df08de 2006-06-09 10:30:37 by steve
Added to the repository.  These are almost straight copies of the
 previous hook scripts except they are now Debian-specific.

  They also each log their start and finish and optional information
 via the use of the ../common.sh file.

  No major changes anticipated.
2006-06-09 10:30:37 +00:00

38 lines
448 B
Bash
Executable File

#!/bin/sh
#
# This script disables the hardware clock.
#
# Steve
# --
# http://www.steve.org.uk/
prefix=$1
#
# Source our common functions
#
if [ -e ../common.sh ]; then
. ../common.sh
fi
#
# Log our start
#
logMessage Script $0 starting
#
# Disable the startup scripts from all runlevels.
#
chmod -x ${prefix}/etc/init.d/hwclock.sh
chmod -x ${prefix}/etc/init.d/hwclockfirst.sh
#
# Log our finish
#
logMessage Script $0 finished.