summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2006-11-19 16:10:41 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2006-11-19 16:10:41 +0000
commit7319d00ceae2e4c52f8a608015ec47901addb165 (patch)
treef913a9acd4eea3d046abb4f25bbc741f5d20d35b /generic
parent4b16d7bb6a682e71524798abc16818ef81660592 (diff)
downloadptxdist-7319d00ceae2e4c52f8a608015ec47901addb165.tar.gz
ptxdist-7319d00ceae2e4c52f8a608015ec47901addb165.tar.xz
adding start script and configuration to nfs service
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6350 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'generic')
-rw-r--r--generic/etc/init.d/nfsd22
1 files changed, 22 insertions, 0 deletions
diff --git a/generic/etc/init.d/nfsd b/generic/etc/init.d/nfsd
new file mode 100644
index 000000000..6571a57b3
--- /dev/null
+++ b/generic/etc/init.d/nfsd
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# lauching NFS service
+#
+case "$1" in
+ start)
+ echo "Mounting nfsd virtual filesystem..."
+ /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
+
+ echo "Starting NFS mountd..."
+ /usr/sbin/mountd
+
+ echo "Starting NFS nfsd..."
+ /usr/sbin/rpc.nfsd -p 2049 3
+
+ echo "Starting NFS statd..."
+ /usr/sbin/rpc.statd
+
+ echo "Exporting NFS Filesystems..."
+ /usr/sbin/exportfs -ra 2>&1 > /dev/null
+ ;;
+esac