diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2015-08-28 23:05:00 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2015-08-28 23:05:00 -0400 |
commit | f46bdf9d5bfc6eeae828539a234e957fe2b2e042 (patch) | |
tree | 560f0a1e67351a7a75900b4ddc41a34158873d72 /pcr/openrc-net/rpc.pipefs.initd | |
parent | 698cfed94cf9c654ecf39a809821359ba6f4c70c (diff) | |
parent | da0dc67b72e2c1a374260ea6ef5aa3f0f805d90d (diff) |
merge
Diffstat (limited to 'pcr/openrc-net/rpc.pipefs.initd')
-rw-r--r-- | pcr/openrc-net/rpc.pipefs.initd | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/pcr/openrc-net/rpc.pipefs.initd b/pcr/openrc-net/rpc.pipefs.initd deleted file mode 100644 index ebae3b915..000000000 --- a/pcr/openrc-net/rpc.pipefs.initd +++ /dev/null @@ -1,33 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.pipefs.initd,v 1.3 2014/06/20 04:33:57 vapier Exp $ - -MNT="/var/lib/nfs/rpc_pipefs" - -mount_pipefs() { - local fstype=rpc_pipefs - - # if things are already mounted, nothing to do - mountinfo -q ${MNT} && return 0 - - # if rpc_pipefs is not available, try to load sunrpc for it #219566 - grep -qs ${fstype} /proc/filesystems || modprobe -q sunrpc - # if still not available, the `mount` will issue an error for the user - - # now just do it for kicks - mkdir -p ${MNT} - mount -t ${fstype} ${fstype} ${MNT} -} - -start() { - ebegin "Setting up RPC pipefs" - mount_pipefs - eend $? "make sure you have NFS/SUNRPC enabled in your kernel" -} - -stop() { - ebegin "Unmounting RPC pipefs" - umount ${MNT} - eend $? -} |