21 lines
378 B
Plaintext
21 lines
378 B
Plaintext
[main]
|
|
@type = oneshot
|
|
@description = "load nfs modules"
|
|
@user = ( root )
|
|
@options = ( env )
|
|
@depends = (rpcbind)
|
|
|
|
[start]
|
|
@build = auto
|
|
@execute = (
|
|
forx i { ${mnt_type_sunrpc} ${mnt_type_nfs} ${mnt_type_nfsd} }
|
|
importas -u type i
|
|
if -nt { grep -qs ${type} /proc/filesystems }
|
|
modprobe -q ${type}
|
|
)
|
|
|
|
[environment]
|
|
mnt_type_sunrpc=!sunrpc
|
|
mnt_type_nfs=!nfs
|
|
mnt_type_nfsd=!nfsd
|