Add std-stream oneshot service

This commit is contained in:
2025-09-18 20:12:00 +02:00
parent 5eb5ce724f
commit 05afc39b81
4 changed files with 19 additions and 0 deletions

12
busybox/std-stream/up Normal file
View File

@@ -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