Browse Source

procd: create /dev/fd symlink

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 <[email protected]>
Erik Karlsson 2 years ago
parent
commit
fdce970dbb
2 changed files with 2 additions and 1 deletions
  1. 1 1
      package/system/procd/Makefile
  2. 1 0
      package/system/procd/files/hotplug.json

+ 1 - 1
package/system/procd/Makefile

@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 include $(TOPDIR)/rules.mk
 
 
 PKG_NAME:=procd
 PKG_NAME:=procd
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git

+ 1 - 0
package/system/procd/files/hotplug.json

@@ -11,6 +11,7 @@
 						[ "eq", "DEVNAME", "null" ],
 						[ "eq", "DEVNAME", "null" ],
 						[
 						[
 							[ "makedev", "/dev/%DEVNAME%", "0666" ],
 							[ "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/0", "/dev/stdin" ],
 							[ "exec", "/bin/ln", "-s", "/proc/self/fd/1", "/dev/stdout" ],
 							[ "exec", "/bin/ln", "-s", "/proc/self/fd/1", "/dev/stdout" ],
 							[ "exec", "/bin/ln", "-s", "/proc/self/fd/2", "/dev/stderr" ],
 							[ "exec", "/bin/ln", "-s", "/proc/self/fd/2", "/dev/stderr" ],