summaryrefslogtreecommitdiff
path: root/busybox
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-09-18 20:12:00 +0200
committerEugen Wissner <belka@caraus.de>2025-09-18 20:12:00 +0200
commit05afc39b817385fbad2688ffef07323ae892e983 (patch)
tree558e9833c8afd61efa1c7ae8b641c4124b55af98 /busybox
parent5eb5ce724f630196f95b3e5cdd963753bba494c2 (diff)
downloads6-05afc39b817385fbad2688ffef07323ae892e983.tar.gz
Add std-stream oneshot service
Diffstat (limited to 'busybox')
-rw-r--r--busybox/std-stream/dependencies1
-rw-r--r--busybox/std-stream/type1
-rw-r--r--busybox/std-stream/up12
3 files changed, 14 insertions, 0 deletions
diff --git a/busybox/std-stream/dependencies b/busybox/std-stream/dependencies
new file mode 100644
index 0000000..8b71071
--- /dev/null
+++ b/busybox/std-stream/dependencies
@@ -0,0 +1 @@
+procfs
diff --git a/busybox/std-stream/type b/busybox/std-stream/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/busybox/std-stream/type
@@ -0,0 +1 @@
+oneshot
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