diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-09-19 08:30:41 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-09-19 08:30:41 +0000 |
| commit | 579f2b1da39f297dc897b0f09ff353669adb11a0 (patch) | |
| tree | 826fa5d1ed0ebf71dd438b8d4c0a2c549e2fc187 /etc | |
| parent | 91b5e197ca61f4b628deb5e0fb78871bb6fc8730 (diff) | |
Notes
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/rc | 16 | ||||
| -rw-r--r-- | etc/sysconfig | 9 |
2 files changed, 18 insertions, 7 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.66.4.1 1995/08/25 03:37:21 davidg Exp $ +# $Id: rc,v 1.66.4.2 1995/09/14 23:16:33 jkh Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -298,14 +298,18 @@ fi # configure implementation specific stuff arch=`uname -m` -if [ -f /etc/rc.$arch ]; then - . /etc/rc.$arch +if [ -f /etc/rc.${arch} ]; then + . /etc/rc.${arch} fi -# Do traditional (but rather obsolete) rc.local file if it exists. -if [ -f /etc/rc.local ]; then - sh /etc/rc.local +if [ "X${local_startup}" != X"NO" -a -d ${local_startup} ]; then + for script in ${local_startup}/*.sh; do + [ -x ${script} ] && ${script} start + done fi +# Do traditional (but rather obsolete) rc.local file if it exists. +[ -x /etc/rc.local ] && /etc/rc.local + date exit 0 diff --git a/etc/sysconfig b/etc/sysconfig index 3daf719cf185..cf25e7db39e6 100644 --- a/etc/sysconfig +++ b/etc/sysconfig @@ -4,7 +4,14 @@ # 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.14.4.1 1995/08/23 07:18:06 jkh Exp $ +# $Id: sysconfig,v 1.14.4.2 1995/09/14 23:16:34 jkh Exp $ + +######################### Start Of Local Configuration Section ########### + +# Location of local startup files. +local_startup=/usr/local/etc/rc.local.d + +######################### End Of Local Configuration Section ############# ######################### Start Of Syscons Section ####################### |
