summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-14 21:28:13 +0000
committerache <ache@FreeBSD.org>1999-11-14 21:28:13 +0000
commit13f6adacd557a8b1d742fb8c639a81cefaea6df3 (patch)
tree7b07a9167443c18200a6377447aad91719fd0ef4 /etc/rc.d
parent6b4352eb7fcff4ed67d91eee3c2e676274fd53dd (diff)
downloadFreeBSD-src-13f6adacd557a8b1d742fb8c639a81cefaea6df3.zip
FreeBSD-src-13f6adacd557a8b1d742fb8c639a81cefaea6df3.tar.gz
Add single_mountd_enable hook to run mountd but not NFS server
Needed for machine with CFS but without real NFS
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/netoptions17
-rw-r--r--etc/rc.d/network117
-rw-r--r--etc/rc.d/network217
-rw-r--r--etc/rc.d/network317
-rw-r--r--etc/rc.d/routing17
5 files changed, 85 insertions, 0 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index ad66337..d17f6ef 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -508,6 +508,23 @@ network_pass3() {
esac
fi
;;
+ *)
+ case ${single_mountd_enable} in
+ [Yy][Ee][Ss])
+ if [ -r /etc/exports ]; then
+ echo -n ' mountd'
+
+ case ${weak_mountd_authentication} in
+ [Yy][Ee][Ss])
+ mountd_flags="-n"
+ ;;
+ esac
+
+ mountd ${mountd_flags}
+ fi
+ ;;
+ esac
+ ;;
esac
case ${nfs_client_enable} in
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index ad66337..d17f6ef 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -508,6 +508,23 @@ network_pass3() {
esac
fi
;;
+ *)
+ case ${single_mountd_enable} in
+ [Yy][Ee][Ss])
+ if [ -r /etc/exports ]; then
+ echo -n ' mountd'
+
+ case ${weak_mountd_authentication} in
+ [Yy][Ee][Ss])
+ mountd_flags="-n"
+ ;;
+ esac
+
+ mountd ${mountd_flags}
+ fi
+ ;;
+ esac
+ ;;
esac
case ${nfs_client_enable} in
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index ad66337..d17f6ef 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -508,6 +508,23 @@ network_pass3() {
esac
fi
;;
+ *)
+ case ${single_mountd_enable} in
+ [Yy][Ee][Ss])
+ if [ -r /etc/exports ]; then
+ echo -n ' mountd'
+
+ case ${weak_mountd_authentication} in
+ [Yy][Ee][Ss])
+ mountd_flags="-n"
+ ;;
+ esac
+
+ mountd ${mountd_flags}
+ fi
+ ;;
+ esac
+ ;;
esac
case ${nfs_client_enable} in
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3
index ad66337..d17f6ef 100644
--- a/etc/rc.d/network3
+++ b/etc/rc.d/network3
@@ -508,6 +508,23 @@ network_pass3() {
esac
fi
;;
+ *)
+ case ${single_mountd_enable} in
+ [Yy][Ee][Ss])
+ if [ -r /etc/exports ]; then
+ echo -n ' mountd'
+
+ case ${weak_mountd_authentication} in
+ [Yy][Ee][Ss])
+ mountd_flags="-n"
+ ;;
+ esac
+
+ mountd ${mountd_flags}
+ fi
+ ;;
+ esac
+ ;;
esac
case ${nfs_client_enable} in
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index ad66337..d17f6ef 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -508,6 +508,23 @@ network_pass3() {
esac
fi
;;
+ *)
+ case ${single_mountd_enable} in
+ [Yy][Ee][Ss])
+ if [ -r /etc/exports ]; then
+ echo -n ' mountd'
+
+ case ${weak_mountd_authentication} in
+ [Yy][Ee][Ss])
+ mountd_flags="-n"
+ ;;
+ esac
+
+ mountd ${mountd_flags}
+ fi
+ ;;
+ esac
+ ;;
esac
case ${nfs_client_enable} in
OpenPOWER on IntegriCloud