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.json12
1 files changed, 11 insertions, 1 deletions
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index 7e0f129d35..b930b307a4 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -8,8 +8,18 @@
],
[
[ "if",
+ [ "eq", "DEVNAME", "null" ],
+ [
+ [ "makedev", "/dev/%DEVNAME%", "0666" ],
+ [ "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" ],