procd: create /dev/fd symlink
authorErik Karlsson <erik.karlsson@genexis.eu>
Wed, 6 Sep 2023 10:33:17 +0000 (12:33 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 Sep 2023 11:22:34 +0000 (13:22 +0200)
This is needed for ksh/bash style process substitution such as
<(command) and >(command) which was introduced in ash as of busybox
version 1.34.0 to work.

Signed-off-by: Erik Karlsson <erik.karlsson@genexis.eu>
(cherry picked from commit fdce970dbb47a6f91b08bdac21a098e77926549f)

package/system/procd/Makefile
package/system/procd/files/hotplug.json

index 9e829a21591ef1b4279fd41a98110dd761a576e0..d0576c12595dee044f00c1089af43caffd4c2d44 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=procd
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git
index b930b307a4f3cb34bc3346192987f95ff3f27e31..9fecddae6be1f088e6ec5e7ab68a1d186cf5251c 100644 (file)
@@ -11,6 +11,7 @@
                                                [ "eq", "DEVNAME", "null" ],
                                                [
                                                        [ "makedev", "/dev/%DEVNAME%", "0666" ],
+                                                       [ "exec", "/bin/ln", "-s", "/proc/self/fd", "/dev/fd" ],
                                                        [ "exec", "/bin/ln", "-s", "/proc/self/fd/0", "/dev/stdin" ],
                                                        [ "exec", "/bin/ln", "-s", "/proc/self/fd/1", "/dev/stdout" ],
                                                        [ "exec", "/bin/ln", "-s", "/proc/self/fd/2", "/dev/stderr" ],