From 72a9ad28e27805d4e531b05053148010bb1048cb Mon Sep 17 00:00:00 2001 From: jkh Date: Sun, 5 Mar 1995 22:00:40 +0000 Subject: [PATCH] If there is a host-specific rc file lurking in /usr/share/misc, execute it. Submitted by: Heikki Suonsivu --- etc/rc.local | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/rc.local b/etc/rc.local index 74ad93a5e582..ea9bb3d8cabe 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