-
-# We need rpc.lockd on kernels < 2.2.18 if Trond Myklebust and Dave Higgens'
-# NFS patches have not been applied.
-lockd_not_needed()
-{
- if [ "`uname`" = "Linux" ]; then
-
- os_rel=`uname -r`
-
- # This messily chops up the linux version number and turns it into
- # a comparable integer.
- #
- # printf value description
- # %d `echo $os_rel | cut -f1 -d.` Major Linux release #
- # %02d `echo $os_rel | cut -f2 -d.` Minor Linux release #
- # %02d `echo $os_rel | cut -f3 -d.` Patchlevel
- #
- linux_version_code=`printf "%d%02d%02d" \`echo $os_rel | cut -f1 -d.\` \`echo $os_rel | cut -f2 -d.\` \`echo $os_rel | cut -f3 -d.\``
- return $((linux_version_code < 20218))
- fi
-
- # On non-Linux systems, assume that lockd is always required.
- return 1
-}
-