aboutsummaryrefslogtreecommitdiff
path: root/init.d.FreeBSD
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-11 12:18:05 +0000
committerRoy Marples <roy@marples.name>2008-01-11 12:18:05 +0000
commit6b41b6500842b2b6bd7f78b4f2ccda579ee1a108 (patch)
treea57599974eb573de7b12ec118e1c658a527ad3ec /init.d.FreeBSD
parent3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 (diff)
Remove vim settings.
Diffstat (limited to 'init.d.FreeBSD')
-rw-r--r--init.d.FreeBSD/clock14
1 files changed, 8 insertions, 6 deletions
diff --git a/init.d.FreeBSD/clock b/init.d.FreeBSD/clock
index 3e7ce152..1000f846 100644
--- a/init.d.FreeBSD/clock
+++ b/init.d.FreeBSD/clock
@@ -14,7 +14,8 @@ else
utc="Local Time"
fi
-depend() {
+depend()
+{
# BSD adjkerntz needs to be able to write to /etc
if [ "${clock}" = "UTC" -a -e /etc/wall_cmos_clock ] ||
[ "${clock}" != "UTC" -a ! -e /etc/wall_cmos_clock ]; then
@@ -22,7 +23,8 @@ depend() {
fi
}
-start() {
+start()
+{
ebegin "Starting the System Clock Adjuster [${utc}]"
if [ "${clock}" != "UTC" ]; then
echo >/etc/wall_cmos_clock
@@ -34,13 +36,15 @@ start() {
eend $?
}
-save() {
+save()
+{
ebegin "Setting hardware clock using the system clock [${utc}]"
adjkerntz -a
eend $?
}
-stop() {
+stop()
+{
# Don't tweak the hardware clock on LiveCD halt.
if yesno "${clock_systohc:-${CLOCK_SYSTOHC}}"; then
[ -z "${CDBOOT}" ] && save
@@ -54,5 +58,3 @@ stop() {
eend 0
fi
}
-
-# vim: set ts=4 :