local_startup=/usr/local/etc/rc.d

[ As suggested by Satoshi - rc.local.d was pretty redundant under /usr/local;
  duh! :-)]

[ -f /etc/rc.local ] && sh /etc/rc.local
For backwards compatibilty with non-executable rc.local files.  Sorry, Bruce!

Submitted by:	asami & bde & jkh
This commit is contained in:
jkh 1995-09-19 10:19:44 +00:00
parent 21374f84f8
commit 5a484289b9
2 changed files with 4 additions and 4 deletions

4
etc/rc
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: rc,v 1.71 1995/09/18 19:17:13 paul Exp $
# $Id: rc,v 1.72 1995/09/19 08:33:42 jkh Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@ -299,7 +299,7 @@ if [ "X${local_startup}" != X"NO" -a -d ${local_startup} ]; then
fi
# Do traditional (but rather obsolete) rc.local file if it exists.
[ -x /etc/rc.local ] && /etc/rc.local
[ -f /etc/rc.local ] && sh /etc/rc.local
date
exit 0

View File

@ -4,12 +4,12 @@
# This is sysconfig - a file full of useful variables that you can set
# to change the default startup behavior of your system.
#
# $Id: sysconfig,v 1.23 1995/09/18 19:17:14 paul Exp $
# $Id: sysconfig,v 1.24 1995/09/19 08:33:43 jkh Exp $
######################### Start Of Local Configuration Section ###########
# Location of local startup files.
local_startup=/usr/local/etc/rc.local.d
local_startup=/usr/local/etc/rc.d
######################### End Of Local Configuration Section #############