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

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

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

version 1.5, Mon Feb 4 22:23:24 2008 UTC version 1.6, Sun May 4 09:53:34 2008 UTC
Line 19 
Line 19 
 }  }
   
 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.5  
changed lines
  Added in v.1.6

www@gentoo.org

Powered by ViewCVS 1.0_pre20050929

ViewCVS and CVS Help