ports/main/nnd-s6-services/rc/mount.sys-kernel-security/up

22 lines
398 B
Plaintext

#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/mount.sys-kernel-security
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /sys/kernel/security
define FSTYPE securityfs
fdclose 1
fdclose 2
foreground {
foreground {
exec mkdir -p $DEST
} exec mount -t $FSTYPE -o $OPTS none $DEST
} if -nt {
importas status ? test $status -eq 1
}