immortalwrt/package/base-files/files/etc/init.d
Rosen Penev 2f84ce82f1 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-15 12:11:11 +08:00
..
boot base-files: mount pstore if present 2021-01-31 22:09:14 +08:00
done base-files: prevent issues w/ overlay on powerloss after sysupgrade 2020-10-13 18:39:53 +08:00
gpio_switch Merge branch 'master' of github.com:lede-project/source 2018-04-23 18:50:49 +08:00
led base-files: disable LEDs if default state is undefined 2020-08-05 21:04:51 +08:00
sysctl sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
sysfixtime update source 2017-09-06 19:19:45 +08:00
system base-files: use hwclock --systz 2021-02-15 12:11:11 +08:00
umount base-files: supress service restart of umount 2020-10-13 18:31:16 +08:00