--- /etc/init.d/clock 2005-06-02 15:15:12.000000000 -0500 +++ /mnt/pristine/etc/init.d/clock 2005-06-02 15:15:38.000000000 -0500 @@ -32,6 +32,12 @@ eend 0 "Detected UML Environment; ignoring" return 0 + elif [ -d "/proc/xen" ] && [ ! -f "/proc/xen/privcmd" ] + then + ebegin "Setting system clock to hardware clock ${TBLURB}" + eend 0 "Detected Xen unprivileged environment; ignoring" + return 0 + elif [ -x /sbin/hwclock ] then ebegin "Setting system clock to hardware clock ${TBLURB}" @@ -73,7 +79,13 @@ ebegin "Syncing hardware clock to system clock ${TBLURB}" eend 0 "Detected UML Environment; ignoring" return 0 - + + elif [ -d "/proc/xen" ] && [ ! -f "/proc/xen/privcmd" ] + then + ebegin "Setting system clock to hardware clock ${TBLURB}" + eend 0 "Detected Xen unprivileged environment; ignoring" + return 0 + elif [ -x /sbin/hwclock ] then ebegin "Syncing hardware clock to system clock ${TBLURB}"