aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files/hotplug.json
diff options
context:
space:
mode:
authorErik Karlsson <erik.karlsson@genexis.eu>2023-09-06 12:33:17 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2023-09-16 20:48:34 +0200
commitfdce970dbb47a6f91b08bdac21a098e77926549f (patch)
tree3f7d9a2861e4c131443992ba03cc85a23d072915 /package/system/procd/files/hotplug.json
parent8486c677b8bf36808c5b94857f60ee0fb3d5fa28 (diff)
downloadupstream-fdce970dbb47a6f91b08bdac21a098e77926549f.tar.gz
upstream-fdce970dbb47a6f91b08bdac21a098e77926549f.tar.bz2
upstream-fdce970dbb47a6f91b08bdac21a098e77926549f.zip
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 <erik.karlsson@genexis.eu>
Diffstat (limited to 'package/system/procd/files/hotplug.json')
-rw-r--r--package/system/procd/files/hotplug.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index b930b307a4f..9fecddae6be 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -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" ],