ports/main/nnd-s6-services/rc/mount.sys-fs-pstore/up

22 lines
382 B
Plaintext

#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/mount.sys-fs-pstore
importas -i OPTS OPTS
emptyenv
export PATH $PATH
define DEST /sys/fs/pstore
define FSTYPE pstore
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
}