1
Zaurus - pdaXrom / Suspend Problems, Poss Solution
« on: August 11, 2005, 05:24:54 pm »
this solution worked nicely with rc10 and my c860. X froze after every suspend because the clock changed back x days upon resume.
my solution was to load ntpdate through a startup script and add sethwclock:
my solution was to load ntpdate through a startup script and add sethwclock:
Code: [Select]
-----------------------------------------------------------------
/etc/rc.d/init.d/ntpdate
-----------------------------------------------------------------
#!/bin/bash
#
# /etc/rc.d/init.d/S65ntpdate - Start the inetd daemon(s).
#
# Comment out the following exit line to enable this script.
# exit 0
# Source function library.
. /etc/rc.d/init.d/functions
CLIENT="/usr/bin/ntpdate"
TIMESERVER="-b -u pool.ntp.org"
case "$1" in
start)
msg -n "Starting ntpdate:"
exec $CLIENT $TIMESERVER 2>/dev/null >/dev/null
exec sethwclock -systohc
msg
;;
stop)
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
exit 0
-----------------------------------------------------------------