summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
index 82ec7f66eb..4fffe4e808 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2### BEGIN INIT INFO 2### BEGIN INIT INFO
3# Provides: mountnfs 3# Provides: mountnfs
4# Required-Start: $local_fs $network $portmap 4# Required-Start: $local_fs $network $rpcbind
5# Required-Stop: 5# Required-Stop:
6# Default-Start: S 6# Default-Start: S
7# Default-Stop: 7# Default-Stop:
@@ -17,9 +17,9 @@ test -f /etc/fstab && (
17# 17#
18# Read through fstab line by line. If it is NFS, set the flag 18# Read through fstab line by line. If it is NFS, set the flag
19# for mounting NFS filesystems. If any NFS partition is found and it 19# for mounting NFS filesystems. If any NFS partition is found and it
20# not mounted with the nolock option, we start the portmapper. 20# not mounted with the nolock option, we start the rpcbind.
21# 21#
22portmap=no 22rpcbind=no
23mount_nfs=no 23mount_nfs=no
24mount_smb=no 24mount_smb=no
25mount_ncp=no 25mount_ncp=no
@@ -45,7 +45,7 @@ do
45 *nolock*) 45 *nolock*)
46 ;; 46 ;;
47 *) 47 *)
48 portmap=yes 48 rpcbind=yes
49 ;; 49 ;;
50 esac 50 esac
51 fi 51 fi
@@ -65,12 +65,12 @@ done
65 65
66exec 0>&1 66exec 0>&1
67 67
68if test "$portmap" = yes 68if test "$rpcbind" = yes
69then 69then
70 if test -x /sbin/portmap 70 if test -x /usr/sbin/rpcbind
71 then 71 then
72 echo -n "Starting portmapper... " 72 echo -n "Starting rpcbind... "
73 start-stop-daemon --start --quiet --exec /sbin/portmap 73 start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
74 sleep 2 74 sleep 2
75 fi 75 fi
76fi 76fi