Add std-stream oneshot service
This commit is contained in:
@@ -1 +1,6 @@
|
|||||||
Some s6 service definitions for third-party software on Slackware Linux.
|
Some s6 service definitions for third-party software on Slackware Linux.
|
||||||
|
|
||||||
|
## busybox
|
||||||
|
|
||||||
|
This directory contains scripts that can be used on embedded Linux systems
|
||||||
|
(riscv32).
|
||||||
|
1
busybox/std-stream/dependencies
Normal file
1
busybox/std-stream/dependencies
Normal file
@@ -0,0 +1 @@
|
|||||||
|
procfs
|
1
busybox/std-stream/type
Normal file
1
busybox/std-stream/type
Normal file
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
12
busybox/std-stream/up
Normal file
12
busybox/std-stream/up
Normal 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
|
Reference in New Issue
Block a user