Hi andi,
rtc3 made my day!!!
this is the rtc part of my post-boot:
Code:
# activate RTC. Remove this if not using WL-HDD!
# remove /dev/rtc with old parameters
rm /dev/rtc
# mknod with new parameters
mknod /dev/rtc c 10 135
# insert module
insmod /opt/lib/modules/2.4.20/rtc3.o
# set time from RTC
if [ `date +%s` -lt 10000 ]; then
#we are before Jan 1 1970, 3am, the clock has not been set up
cat /dev/rtc|(IFS=:;read Y M D dow h m s
# dow is day of week, 0=sunday
date $M$D$h$m$Y.$s)
fi
and this is my pre-shutdown:
Code:
#!/bin/sh
# write a log line:
echo "rtc-time is set to `/bin/date '+%Y:%m:%d:%w:%H:%M:%S'`" | logger -t pre-shutdown
# set time:
/bin/date +%Y:%m:%d:%w:%H:%M:%S > /dev/rtc
Thank you so much!
wengi