immortalwrt/package/base-files/files
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
..
bin base-files: set hostname to ImmortalWrt 2021-02-06 19:03:42 +08:00
etc base-files: use hwclock --systz 2021-02-15 12:11:11 +08:00
lib base-files: add function for generating random MAC 2021-02-05 12:26:15 +08:00
rom fix permission 2019-09-30 14:27:46 +08:00
sbin base-files: sysupgrade: add function for conffiles retrieval 2020-12-31 17:49:08 +08:00
usr dropbear: bump to 2019.78 2020-03-22 18:35:41 +08:00