16 lines
317 B
Plaintext
16 lines
317 B
Plaintext
#!/bin/execlineb -P
|
|
s6-envdir -i /etc/s6/env/core/path
|
|
importas -i PATH PATH
|
|
emptyenv
|
|
|
|
export PATH $PATH
|
|
define DEST /proc
|
|
define FSTYPE proc
|
|
define OPTS nosuid,nodev,noexec,hidepid=2
|
|
|
|
foreground {
|
|
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS proc $DEST
|
|
} if -nt {
|
|
importas status ? test $status -eq 1
|
|
}
|