From 9bb9dccd6728fcfde5e8fa06d2061cbc90ec47c1 Mon Sep 17 00:00:00 2001 From: viktorxda <35473052+viktorxda@users.noreply.github.com> Date: Tue, 20 Aug 2024 22:48:10 +0200 Subject: [PATCH] [no ci] Overlay: add logger to rcs script (#1529) --- general/overlay/etc/init.d/S30customizer | 2 ++ general/overlay/etc/init.d/rcS | 2 +- .../etc/init.d => package/vtund-openipc/files}/S98vtun | 0 general/package/vtund-openipc/vtund-openipc.mk | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) rename general/{overlay/etc/init.d => package/vtund-openipc/files}/S98vtun (100%) diff --git a/general/overlay/etc/init.d/S30customizer b/general/overlay/etc/init.d/S30customizer index 10bb0164..b1b3f81c 100755 --- a/general/overlay/etc/init.d/S30customizer +++ b/general/overlay/etc/init.d/S30customizer @@ -2,6 +2,8 @@ case "$1" in start) + date -s @$(grep TIME_STAMP /etc/os-release | cut -d= -f2) + if [ ! -e /etc/custom.ok ] && [ -e /usr/share/openipc/customizer.sh ]; then echo "Run customizer script..." sh /usr/share/openipc/customizer.sh diff --git a/general/overlay/etc/init.d/rcS b/general/overlay/etc/init.d/rcS index e6456301..7887851d 100755 --- a/general/overlay/etc/init.d/rcS +++ b/general/overlay/etc/init.d/rcS @@ -7,7 +7,7 @@ for i in /etc/init.d/S??*; do [ ! -f "$i" ] && continue case "$i" in *) - $i start + $i start | logger -s ;; esac done diff --git a/general/overlay/etc/init.d/S98vtun b/general/package/vtund-openipc/files/S98vtun similarity index 100% rename from general/overlay/etc/init.d/S98vtun rename to general/package/vtund-openipc/files/S98vtun diff --git a/general/package/vtund-openipc/vtund-openipc.mk b/general/package/vtund-openipc/vtund-openipc.mk index d0ccc8a4..c027d109 100644 --- a/general/package/vtund-openipc/vtund-openipc.mk +++ b/general/package/vtund-openipc/vtund-openipc.mk @@ -18,6 +18,9 @@ VTUND_OPENIPC_CONF_OPTS += --disable-lzo --disable-ssl --disable-zlib VTUND_OPENIPC_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu89" define VTUND_OPENIPC_INSTALL_TARGET_CMDS + $(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d + $(INSTALL) -m 755 -t $(TARGET_DIR)/etc/init.d $(VTUND_OPENIPC_PKGDIR)/files/S98vtun + $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/sbin $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(VTUND_OPENIPC_PKGDIR)/files/tapip $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/sbin $(VTUND_OPENIPC_PKGDIR)/files/tunnel