Browse Source

- sysvinit: add patch to change INIT_FIFO to /dev/initctl

master
vanhofen 5 years ago
parent
commit
0a228b59ad
  1. 3
      make/target-tools.mk
  2. 13
      patches/sysvinit/change-INIT_FIFO.patch

3
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)

13
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 <sys/param.h>
#ifndef INIT_FIFO
-#define INIT_FIFO "/run/initctl"
+#define INIT_FIFO "/dev/initctl"
#endif
#define INIT_MAGIC 0x03091969
Loading…
Cancel
Save