aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files/hotplug.json
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/procd/files/hotplug.json')
-rw-r--r--package/system/procd/files/hotplug.json13
1 files changed, 12 insertions, 1 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index 7e0f129d356..9fecddae6be 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -8,8 +8,19 @@
],
[
[ "if",
+ [ "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" ],
+ [ "return" ]
+ ]
+ ],
+ [ "if",
[ "eq", "DEVNAME",
- [ "null", "full", "ptmx", "zero", "tty", "net", "random", "urandom" ]
+ [ "full", "ptmx", "zero", "tty", "net", "random", "urandom" ]
],
[
[ "makedev", "/dev/%DEVNAME%", "0666" ],