Don't mess mess localtime/UTC setting in finit

Signed-off-by: Olivier Blin <oblin@mandriva.com>
This commit is contained in:
Claudio Matsuoka
2009-04-06 11:36:19 -03:00
parent c70872f19e
commit 88ffb9351d
+2 -6
View File
@@ -377,13 +377,9 @@ int main()
/* /*
* Time adjustments * Time adjustments
*/ */
if ((fd = open("/etc/adjtime", O_CREAT|O_WRONLY|O_TRUNC, 0644)) >= 0) {
write(fd, "0.0 0 0.0\n", 10);
close(fd);
}
_d("adjust clock"); _d("adjust clock");
#ifndef NO_HCTOSYS #ifndef NO_HCTOSYS
system("/sbin/hwclock --hctosys --localtime" HWCLOCK_DIRECTISA); system("/sbin/hwclock --hctosys" HWCLOCK_DIRECTISA);
#endif #endif
/* /*
@@ -573,7 +569,7 @@ void shutdown(int sig)
sleep(2); sleep(2);
system("/usr/sbin/alsactl store > /dev/null 2>&1"); system("/usr/sbin/alsactl store > /dev/null 2>&1");
system("/sbin/hwclock --systohc --localtime" HWCLOCK_DIRECTISA); system("/sbin/hwclock --systohc" HWCLOCK_DIRECTISA);
kill(-1, SIGKILL); kill(-1, SIGKILL);