ports/main/nnd-s6-services/rc/mount.sys-firmware-efi-efivars/up

22 lines
406 B
Plaintext

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