summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorQiang Chen <qiang.chen@windriver.com>2013-10-22 13:14:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-12 17:00:13 +0000
commit01411d9cf0379b24f468bf2fdce228ea913e283c (patch)
tree6f09678e4efbbfd2f9c47305076349b307e8130b /meta/recipes-connectivity
parentc34300c72ee541b868802cd7d4b75705e66c3838 (diff)
downloadpoky-01411d9cf0379b24f468bf2fdce228ea913e283c.tar.gz
nfs-utils: modify nfsserver init script indent
Using sysvinit testing service status, nfsserver status allways display as [?] unknown. This is because sysvinit package check whether service's init script supporting status function or not by: grep -qs "\Wstatus)" "$SERVICE" So, this commit modified the indent for status etc, as most service's init script does. (From OE-Core master rev: a6b02fe439fa13c8482383fba2bfdcb0e9742141) (From OE-Core rev: f9be1ec26cf1f313d7c22e26475296b0362c25ea) Signed-off-by: Qiang Chen <qiang.chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
index d7cf6e0048..c263f14f32 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
@@ -144,26 +144,26 @@ stop_statd(){
144# restart: stops and starts mountd 144# restart: stops and starts mountd
145#FIXME: need to create the /var/lib/nfs/... directories 145#FIXME: need to create the /var/lib/nfs/... directories
146case "$1" in 146case "$1" in
147start) create_directories 147 start) create_directories
148 start_nfsd "$NFS_SERVERS" 148 start_nfsd "$NFS_SERVERS"
149 start_mountd 149 start_mountd
150 start_statd 150 start_statd
151 test -r /etc/exports && exportfs -a;; 151 test -r /etc/exports && exportfs -a;;
152stop) exportfs -ua 152 stop) exportfs -ua
153 stop_statd 153 stop_statd
154 stop_mountd 154 stop_mountd
155 stop_nfsd;; 155 stop_nfsd;;
156status) 156 status)
157 status /usr/sbin/rpc.mountd 157 status /usr/sbin/rpc.mountd
158 RETVAL=$? 158 RETVAL=$?
159 status nfsd 159 status nfsd
160 rval=$? 160 rval=$?
161 [ $RETVAL -eq 0 ] && exit $rval 161 [ $RETVAL -eq 0 ] && exit $rval
162 exit $RETVAL;; 162 exit $RETVAL;;
163reload) test -r /etc/exports && exportfs -r;; 163 reload) test -r /etc/exports && exportfs -r;;
164restart) 164 restart)
165 $0 stop 165 $0 stop
166 $0 start;; 166 $0 start;;
167*) echo "Usage: $0 {start|stop|status|reload|restart}" 167 *) echo "Usage: $0 {start|stop|status|reload|restart}"
168 exit 1;; 168 exit 1;;
169esac 169esac