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

18 lines
309 B
Plaintext

#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/mount.dev-cgroup
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /dev/cgroup
define FSTYPE cgroup
fdclose 1
fdclose 2
foreground {
exec mkdir -p $DEST
} exec mount -t $FSTYPE -o $OPTS none $DEST