From 850da56a4943e81016cc035648c2f6659c4ec614 Mon Sep 17 00:00:00 2001
From: dd
Date: Wed, 2 Oct 2002 00:59:14 +0000
Subject: In a diskless setup, rc.d/initdiskless may overwrite parts of /etc on
a per-machine or per-cluster (with different ways of expressing what's part
of a cluster) basis. In order for this to be effective, rc.conf has to be
reread after initdiskless is finished. Implement this by adding a hook to
etc/rc which rereads rc.conf by request. This can also be implemented by
renaming initdiskless to initdiskless.sh and sourcing rc.conf there manually,
but it was decided that, that would be uglier than a hook in etc/rc.
Developed in concert with: gordon
---
etc/rc.initdiskless | 2 ++
1 file changed, 2 insertions(+)
(limited to 'etc/rc.initdiskless')
diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless
index 38fab70..6722365 100644
--- a/etc/rc.initdiskless
+++ b/etc/rc.initdiskless
@@ -138,3 +138,5 @@ if [ ! -e /etc/resolv.conf ]; then
echo nameserver $ns >> /etc/resolv.conf;
done
fi
+
+exit 2 # Tell /etc/rc to re-source rc.conf
--
cgit v1.1