VectorLinux
September 17, 2014, 03:22:37 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 [2]
  Print  
Author Topic: Daylight Savings Time???  (Read 2199 times)
roarde
Vectorian
****
Posts: 530


move the needle


« Reply #15 on: March 16, 2013, 05:54:53 pm »

Right, sledgehammer. But in the end, your time is being set by ntp. Not sure if what rc.S does has an effect you'll notice in your case.

Thanks very much for the reply.
Logged

Robert
VL STD 7.1 RC2.2.2, icewmvmods
StrayBit
Vectorite
***
Posts: 373



« Reply #16 on: March 18, 2013, 08:29:23 am »

When you shut down, the hardware clock is set to system time in /etc/rc.d/rc.k in both VL6 and VL7.0:
Code:
# Save the system time to the hardware clock using hwclock --systohc.
if [ -x /sbin/hwclock ]; then
  # Check for a broken motherboard RTC clock (where ioports for rtc are
  # unknown) to prevent hwclock causing a hang:
  if ! grep -q -w rtc /proc/ioports ; then
    CLOCK_OPT="--directisa"
  fi
  if grep -q "^UTC" /etc/hardwareclock 2> /dev/null ; then
    /etc/rc.d/rc.text 5 "Saving system time to the hardware clock (UTC)."
     # bootsplash
     progressbar 25
    echo "Saving system time to the hardware clock (UTC)."
    /sbin/hwclock $CLOCK_OPT --utc --systohc
  else
    /etc/rc.d/rc.text 4 "Saving system time to the hardware clock (localtime)."
     # bootsplash
     progressbar 20
    echo "Saving system time to the hardware clock (localtime)."
    /sbin/hwclock  $CLOCK_OPT --localtime --systohc
  fi
fi
This is working in VL6 but I haven't used VL7.0 enough to verify it is working there.

I was surprised and confused when my system updated to DST after I had manually set it the night before.  I did leave my system running that night.   Perhaps the system must be running at the change time to work.

I've added "ntpdate -b pool.ntp.org" to rc.local and extend my thanks to nightflier.

Bruce
Logged

Dell GX280: [7.0-Gold-Final], 6.0-Gold-Final, 5.9-Gold
HP 670 Win7 & VL7.0
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!