diff options
author | jkh <jkh@FreeBSD.org> | 1995-03-05 22:00:40 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-03-05 22:00:40 +0000 |
commit | 72a9ad28e27805d4e531b05053148010bb1048cb (patch) | |
tree | 70124b8b88417e6bf16ebfae12dd9752d822fded /etc/rc.local | |
parent | 1d346f4dd390c079db7b88e48952b9621d33bb8b (diff) | |
download | FreeBSD-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/rc.local')
-rw-r--r-- | etc/rc.local | 7 |
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 |