You'll find that the DATE command has some problems. When I did my earlier installs in March, it would accept a date change and process it correctly. Here in April, the DATE command sets the year to 1902 (you can only specify two digits for the year, but it is *supposed* to understand that 02 means 2002 -- it did in March). The trick is to first issue the command DATE 12312359.5901 to set the clock to 11:59:59PM on December 31, 2001. When the clock rolls over to 2002, you issue the DATE command in the format DATE 04242200.00, leaving off the year, and it leaves the year alone. This "two-step" process sets the correct date and time. (Ed. Rick is certainly right on with this- I tried MMddHHmm.ssyy which is supposed to grok the 02 year, but I got 14 June 1902!) Ulrich
Link is making time.
The workaround: cut off the substring yy and append it after the .ss you can do this with "awk", after that you need to put back the right year back to the real time clock. To do so, simply replace the line in "/etc/init.dir/B2s.i386" date `cat /dev/clock` with (or without the comments) # save the cmos rtc value to variable TMPDATE
# cut off prepending year and append it with awk
# set the correct value back to cmos rtc
Now I can reboot my Model 9557slc2 without any manual date adjustment.
|