diff options
Diffstat (limited to 'busybox/std-stream/up')
| -rw-r--r-- | busybox/std-stream/up | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/busybox/std-stream/up b/busybox/std-stream/up new file mode 100644 index 0000000..4bf594a --- /dev/null +++ b/busybox/std-stream/up @@ -0,0 +1,12 @@ +################################################ +# Create symlinks for standard streams in /dev # +################################################ + +if { ln -sf /proc/self/fd /dev/fd } +forx STREAM { "0 stdin" "1 stdout" "2 stderr" } +importas -Sus STREAM +backtick ARGUMENTS { + printf "/proc/self/fd/%i /dev/%s" $STREAM +} +importas -Ssu ARGUMENTS +ln -sf $ARGUMENTS |
