From 3b50611490273f9ab9fe97fe47b0d712a58fe5ad Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 24 May 2015 20:30:36 +0200 Subject: [PATCH] minor update: localtime --- dist/README | 6 +++++- fs-add/etc/init.d/rcS | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dist/README b/dist/README index 6f1761e9..81e6ad4a 100644 --- a/dist/README +++ b/dist/README @@ -10,6 +10,8 @@ Update: - since build 9 firmware upgrade may be upgraded using upgrade-fw tool - file can be fetched directly from github - or specified as a local firmware file directly + - the file is copied to ramfs before flashing + - the first attempt fails usually (ask Inverto), press Enter to repeat - example: 'upgrade-fw' - lists firmwares on github - example: 'upgrade-fw satip-axe-201504211434-8.fw' @@ -45,11 +47,13 @@ Installation to internal flash: Customization: - configuration file is in /etc/sysconfig/config + - put localtime file (glibc) to /etc/sysconfig/localtime - localboot script can be in /etc/sysconfig/localboot - passwd file is copied from /etc/sysconfig/passwd - ssh authorized_keys file is copied from /etc/sysconfig/authorized_keys - inetd.conf file is linked to /etc/sysconfig/inetd.conf - oscam configs are in /etc/sysconfig/oscam directory + - if /etc/sysconfig/customd script exists, it is executed from init httpd: @@ -150,7 +154,7 @@ History: - added http://boxip:8080/axe-status.txt status page (shell parseable) - fixed ntpd start - added crond start / configuration - - added customd start (custom daemon/service/setup - script) from sysinit + - added customd start (custom daemon/service/setup - script) from init - added nano text editor - updated oscam to 10663 - added upgrade-fw script for the internal flash upgrade without an USB stick diff --git a/fs-add/etc/init.d/rcS b/fs-add/etc/init.d/rcS index 7c2d4711..6e46241f 100755 --- a/fs-add/etc/init.d/rcS +++ b/fs-add/etc/init.d/rcS @@ -109,6 +109,11 @@ nc -l 127.0.0.1:1001 -e /bin/true rm -f /root/main_init.sh /tmp/axe-done logger -p local0.notice "AXE drivers load finish" +# localtime +if test -r /etc/sysconfig/localtime; then + ln -s sysconfig/localtime /etc/localtime +fi + # hostname test -r /etc/sysconfig/config && . /etc/sysconfig/config test -n "$HOSTNAME" && hostname "$HOSTNAME"