[no ci] Overlay: add logger to rcs script (#1529)

pull/1530/head
viktorxda 2024-08-20 22:48:10 +02:00 committed by GitHub
parent 28a8aba338
commit 9bb9dccd67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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