ports/main/nnd-s6-services/rc/mount.dev-shm/up

18 lines
299 B
Plaintext
Raw Normal View History

#!/bin/execlineb -P
2022-10-18 19:06:48 +00:00
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/mount.dev-shm
2022-10-18 19:06:48 +00:00
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /dev/shm
define FSTYPE shm
fdclose 1
fdclose 2
foreground {
exec mkdir -p $DEST
} exec mount -t $FSTYPE -o $OPTS shm $DEST