Lines 82-95
Link Here
|
82 |
modprobe rtc &> /dev/null || modprobe genrtc &> /dev/null |
82 |
modprobe rtc &> /dev/null || modprobe genrtc &> /dev/null |
83 |
fi |
83 |
fi |
84 |
|
84 |
|
85 |
ebegin "Setting system clock using the hardware clock [${TBLURB}]" |
|
|
86 |
if [[ ${fakeit} -eq 1 ]] ; then |
85 |
if [[ ${fakeit} -eq 1 ]] ; then |
87 |
ret=0 |
86 |
ret=0 |
88 |
|
87 |
|
89 |
elif [[ -x /sbin/hwclock ]] ; then |
88 |
elif [[ -x /sbin/hwclock ]] ; then |
90 |
# Since hwclock always exit's with a 0, need to check its output. |
89 |
# Since hwclock always exit's with a 0, need to check its output. |
91 |
errstr=$(/sbin/hwclock ${myadj} ${myopts} 2>&1 >/dev/null) |
90 |
errstr=$(/sbin/hwclock ${myadj} ${myopts} 2>&1 >/dev/null) |
92 |
errstr="${errstr}$(/sbin/hwclock --hctosys ${myopts} 2>&1 >/dev/null)" |
91 |
if [[ ${CLOCK_HCTOSYS} != "yes" ]] ; then |
|
|
92 |
ebegin "Setting timezone [${TBLURB}]" |
93 |
errstr="${errstr}$(/sbin/hwclock --systz ${myopts} 2>&1 >/dev/null)" |
94 |
else |
95 |
ebegin "Setting system clock using the hardware clock [${TBLURB}]" |
96 |
errstr="${errstr}$(/sbin/hwclock --hctosys ${myopts} 2>&1 >/dev/null)" |
97 |
fi |
93 |
|
98 |
|
94 |
if [[ -n ${errstr} ]] ; then |
99 |
if [[ -n ${errstr} ]] ; then |
95 |
ewarn "${errstr}" |
100 |
ewarn "${errstr}" |