[gentoo-x86] / net-fs / nfs-utils / files / rpc.svcgssd.initd Project Root:

GentooDiff of /net-fs/nfs-utils/files/rpc.svcgssd.initd

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph

version 1.2, Mon Apr 21 07:56:15 2008 UTC version 1.3, Sun May 4 09:53:34 2008 UTC
Line 12 
Line 12 
 }  }
   
 mount_pipefs() {  mount_pipefs() {
         if grep -qs rpc_pipefs /proc/filesystems ; then          # if things are already mounted, let's just return
                 if ! grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts ; then          grep -qs "rpc_pipefs /var/lib/nfs/rpc_pipefs" /proc/mounts && return 0
   
           # if rpc_pipefs is not available, try to load sunrpc for it #219566
           grep -qs rpc_pipefs /proc/filesystems || modprobe -q sunrpc
           # if still not available, let's bail
           grep -qs rpc_pipefs /proc/filesystems || return 1
   
           # now just do it for kicks
                         mkdir -p /var/lib/nfs/rpc_pipefs                          mkdir -p /var/lib/nfs/rpc_pipefs
                         ebegin "Mounting RPC pipefs"                          ebegin "Mounting RPC pipefs"
                         mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs                          mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs
                         eend $?                          eend $?
                 fi  
         fi  
 }  }
   
 start() {  start() {

Generate output suitable for use with a patch program
Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

www@gentoo.org

Powered by ViewCVS 1.0_pre20050929

ViewCVS and CVS Help