Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 70161 | Differences between
and this patch

Collapse All | Expand All

(-)../orig/etc/init.d/clock (-2 / +12 lines)
Lines 18-23 Link Here
18
		TBLURB="VServer"
18
		TBLURB="VServer"
19
		fakeit=1
19
		fakeit=1
20
		return 0
20
		return 0
21
	elif is_xenU_sys ; then
22
		TBLURB="xenU"
23
		fakeit=1
24
		return 0
21
	elif grep -q ' cobd$' /proc/devices ; then
25
	elif grep -q ' cobd$' /proc/devices ; then
22
		TBLURB="coLinux"
26
		TBLURB="coLinux"
23
		fakeit=1
27
		fakeit=1
Lines 103-111 Link Here
103
	setupopts
107
	setupopts
104
108
105
	ebegin "Syncing system clock to hardware clock [${TBLURB}]"
109
	ebegin "Syncing system clock to hardware clock [${TBLURB}]"
106
	if [[ ${CLOCK} == "UML" ]] ; then
110
111
	# Shouldn't this be a test against fakeit?  If not, shouldn't this be
112
	# checking TBLURB and not CLOCK? -cgs
113
	if [[ "${CLOCK}" == "UML" ]] ; then
107
		ret=0
114
		ret=0
108
	
115
116
	elif [[ "${TBLURB}" == "xenU" ]] ; then
117
		ret=0
118
109
	elif [[ -x /sbin/hwclock ]] ; then
119
	elif [[ -x /sbin/hwclock ]] ; then
110
		errstr=$(/sbin/hwclock --systohc ${myopts} 2>&1 >/dev/null)
120
		errstr=$(/sbin/hwclock --systohc ${myopts} 2>&1 >/dev/null)
111
121
(-)../orig/sbin/functions.sh (+20 lines)
Lines 639-644 Link Here
639
	return $?
639
	return $?
640
}
640
}
641
641
642
# bool is_xen0_sys()
643
#
644
#   return 0 if the currently running system is in Xen domain 0
645
#
646
#   EXAMPLE:  if is_xen0_sys ; then ...
647
#
648
is_xen0_sys() {
649
	return [ -d "/proc/xen" ] && [ -f "/proc/xen/privcmd" ]
650
}
651
652
# bool is_xenU_sys()
653
#
654
#   return 0 if the currently running system is in an unprivileged Xen domain
655
#
656
#   EXAMPLE:  if is_xenU_sys ; then ...
657
#
658
is_xenU_sys() {
659
	return [ -d "/proc/xen" ] && [ ! -f "/proc/xen/privcmd" ]
660
}
661
642
# bool get_mount_fstab(path)
662
# bool get_mount_fstab(path)
643
#
663
#
644
#   return the parameters to pass to the mount command generated from fstab
664
#   return the parameters to pass to the mount command generated from fstab

Return to bug 70161