From 0a228b59ad5ea1f27e7030db53f87544f60edb41 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 2 Jan 2020 22:24:28 +0100 Subject: [PATCH] - sysvinit: add patch to change INIT_FIFO to /dev/initctl --- make/target-tools.mk | 3 +-- patches/sysvinit/change-INIT_FIFO.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 patches/sysvinit/change-INIT_FIFO.patch diff --git a/make/target-tools.mk b/make/target-tools.mk index e69d0cdc..01699114 100644 --- a/make/target-tools.mk +++ b/make/target-tools.mk @@ -1800,6 +1800,7 @@ $(ARCHIVE)/$(SYSVINIT_SOURCE): $(DOWNLOAD) $(SYSVINIT_URL)/$(SYSVINIT_SOURCE) SYSVINIT_PATCH = crypt-lib.patch +SYSVINIT_PATCH += change-INIT_FIFO.patch ifeq ($(BOXSERIES), hd2) SYSVINIT_PATCH += remove-fstack-protector-strong.patch endif @@ -1811,8 +1812,6 @@ define SYSVINIT_INSTALL ln -sf /sbin/halt $(TARGET_DIR)/sbin/reboot ln -sf /sbin/halt $(TARGET_DIR)/sbin/poweroff ln -sf /sbin/killall5 $(TARGET_DIR)/sbin/pidof - # needed to create /run/initctl on startup - mkdir -p $(TARGET_DIR)/run endef sysvinit: $(ARCHIVE)/$(SYSVINIT_SOURCE) | $(TARGET_DIR) diff --git a/patches/sysvinit/change-INIT_FIFO.patch b/patches/sysvinit/change-INIT_FIFO.patch new file mode 100644 index 00000000..c9a644ee --- /dev/null +++ b/patches/sysvinit/change-INIT_FIFO.patch @@ -0,0 +1,13 @@ +diff --git a/src/initreq.h b/src/initreq.h +index ee8a355..102b667 100644 +--- a/src/initreq.h ++++ b/src/initreq.h +@@ -26,7 +26,7 @@ + #include + + #ifndef INIT_FIFO +-#define INIT_FIFO "/run/initctl" ++#define INIT_FIFO "/dev/initctl" + #endif + + #define INIT_MAGIC 0x03091969