summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-03-05 22:00:40 +0000
committerjkh <jkh@FreeBSD.org>1995-03-05 22:00:40 +0000
commit72a9ad28e27805d4e531b05053148010bb1048cb (patch)
tree70124b8b88417e6bf16ebfae12dd9752d822fded /etc
parent1d346f4dd390c079db7b88e48952b9621d33bb8b (diff)
downloadFreeBSD-src-72a9ad28e27805d4e531b05053148010bb1048cb.zip
FreeBSD-src-72a9ad28e27805d4e531b05053148010bb1048cb.tar.gz
If there is a host-specific rc file lurking in /usr/share/misc, execute
it. Submitted by: Heikki Suonsivu <hsu@cs.hut.fi>
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.local7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.local b/etc/rc.local
index 74ad93a..ea9bb3d 100644
--- a/etc/rc.local
+++ b/etc/rc.local
@@ -12,6 +12,7 @@ sed '1,/^$/d' < /etc/motd >> $T
cp $T /etc/motd
chmod 644 /etc/motd
rm -f $T
+_HOST=`hostname`
echo -n 'starting local daemons:'
@@ -38,6 +39,12 @@ if [ X"${nis_clientflags}" != X"NO" ]; then
echo -n ' ypbind'; ypbind $nis_clientflags
fi
+# If we've a local rc file, execute it
+if [ -x /usr/share/misc/rc.${_HOST} ]; then
+ echo " local rc for ${_HOST}:"
+ . /usr/share/misc/rc.${_HOST}
+fi
+
# For loading fonts/keyboard example look in /usr/share/examples/syscons
# directory
OpenPOWER on IntegriCloud