From 0781c6bfef815f877b5b05e6930812abb59ac0d2 Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 5 Jun 2006 15:13:48 +0000 Subject: [PATCH] 2006-06-05 15:13:48 by steve Added to repository. --- etc/hook.d/15-disable-hwclock | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 etc/hook.d/15-disable-hwclock diff --git a/etc/hook.d/15-disable-hwclock b/etc/hook.d/15-disable-hwclock new file mode 100755 index 0000000..81139e6 --- /dev/null +++ b/etc/hook.d/15-disable-hwclock @@ -0,0 +1,41 @@ +#!/bin/sh +# +# This script disables the hardware clock. +# +# Steve +# -- +# http://www.steve.org.uk/ + + +prefix=$1 +dist=$2 + + + +# +# Disable the startup scripts from all runlevels. +# +function setupDebian +{ + chmod -x ${prefix}/etc/init.d/hwclock.sh + chmod -x ${prefix}/etc/init.d/hwclockfirst.sh +} + + + +# +# Entry point to the script. +# +case "${dist}" in + sarge|etch|sid) + setupDebian + ;; + *) + echo "Unknown distribution '${dist}'. Fixme"; + exit; + ;; +esac + + + +