aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorVal Kulkov <val.kulkov@gmail.com>2019-10-07 12:06:52 -0400
committerHauke Mehrtens <hauke@hauke-m.de>2019-10-12 23:43:08 +0200
commitb10a4533670e32a19b4dcc7f90a5d52c679ddf91 (patch)
tree2c33047e5701c43e279ba6fd20786328731e2d79 /package/base-files
parentee5a3f6d605602bbff57cde337235088cf9c3ffa (diff)
downloadupstream-b10a4533670e32a19b4dcc7f90a5d52c679ddf91.tar.gz
upstream-b10a4533670e32a19b4dcc7f90a5d52c679ddf91.tar.bz2
upstream-b10a4533670e32a19b4dcc7f90a5d52c679ddf91.zip
base-files: coreutil-date breaks setting kernel timezone
"coreutil-date" package from the packages feed replaces the Busybox date applet by symlinking /usr/bin/gnu-date to /bin/date. This prevents the system init script from setting kernel timezone because the GNU date utility does not provide such functionality: root@OpenWrt:~# date -k date: invalid option -- 'k' Try 'date --help' for more information. A specific reference to the Busybox date applet prevents alternative date utilities from breaking the system init script. Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/system2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/system b/package/base-files/files/etc/init.d/system
index a98a972469..0e33c522b4 100755
--- a/package/base-files/files/etc/init.d/system
+++ b/package/base-files/files/etc/init.d/system
@@ -27,7 +27,7 @@ system_config() {
ln -sf "/usr/share/zoneinfo/$zonename" /tmp/localtime && rm -f /tmp/TZ
# apply timezone to kernel
- date -k
+ busybox date -k
}
reload_service() {