openwrt/package/base-files/files/etc/init.d
Rosen Penev 157cd0bd97 base-files: use hwclock --systz
The date -k patch is non standard and will be removed in the next
commit.

Tested behavior to be identical with a simple C program:

 #define _GNU_SOURCE
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/time.h>
 #include <sys/syscall.h>

int main()
{
        struct timezone tt;
	struct timezone tz;

        int a = syscall(SYS_gettimeofday, NULL, &tt);
        int b = gettimeofday(NULL, &tz);
        printf("%d - %d, %d\n", a, tt.tz_minuteswest, tt.tz_dsttime);
        printf("%d - %d, %d\n", b, tz.tz_minuteswest, tz.tz_dsttime);
}

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-02-14 15:15:32 +01:00
..
boot base-files: mount pstore if present 2021-01-29 22:26:36 +01:00
done base-files: prevent issues w/ overlay on powerloss after sysupgrade 2020-06-03 16:49:28 +02:00
gpio_switch base-files: gpio switch: add named GPIO support 2020-06-18 20:08:18 +02:00
led base-files: disable LEDs if default state is undefined 2020-09-11 17:34:54 +02:00
sysctl base-files: fix wrong sysctl parameter order 2018-07-18 19:17:46 +02:00
sysfixtime base-files: sysfixtime: Keep RTC time in UTC timezone 2016-10-31 16:33:19 +01:00
system base-files: use hwclock --systz 2021-02-14 15:15:32 +01:00
umount base-files: supress service restart of umount 2019-07-03 07:45:00 +02:00