mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
Don't mess mess localtime/UTC setting in finit
Signed-off-by: Olivier Blin <oblin@mandriva.com>
This commit is contained in:
+2
-6
@@ -377,13 +377,9 @@ int main()
|
||||
/*
|
||||
* 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");
|
||||
#ifndef NO_HCTOSYS
|
||||
system("/sbin/hwclock --hctosys --localtime" HWCLOCK_DIRECTISA);
|
||||
system("/sbin/hwclock --hctosys" HWCLOCK_DIRECTISA);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -573,7 +569,7 @@ void shutdown(int sig)
|
||||
sleep(2);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user