From 672a334d85cbd7dc7a7848f026b516760468387e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 17 Jun 1999 15:04:54 +0000 Subject: set the clock if we can read the /etc/localtime link, too --- rc.d/rc.sysinit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 0ddb45ed..86539176 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -27,6 +27,7 @@ fi set_the_clock() { # Set the system clock. + _CLOCK_SET=1 ARC=0 UTC=0 if [ -f /etc/sysconfig/clock ]; then @@ -74,8 +75,9 @@ set_the_clock() { # Fix console loglevel /sbin/loglevel $LOGLEVEL +_CLOCK_SET=0 # Set clock, if we can... -if [ -f /etc/localtime ]; then +if [ -f /etc/localtime ] || cat /etc/localtime >/dev/null 2>&1; then set_the_clock fi @@ -369,7 +371,7 @@ rm -f /tmp/.X*-lock rm -f /tmp/.s.PGSQL.* # If we didn't set the clock before, set it now... -if [ ! -f /etc/localtime ]; then +if [ "$_CLOCK_SET" != "1" ]; then set_the_clock fi -- cgit v1.2.1