summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-05-30 21:41:54 +0000
committerdougb <dougb@FreeBSD.org>2009-05-30 21:41:54 +0000
commit04b5be7954042cff9e82e646247c67388cdc47c1 (patch)
treecc7fbba199c38a105137eb5dbc1c144abb189236 /etc
parentedb66515a00d296986b025807b90de1f9253e1d1 (diff)
downloadFreeBSD-src-04b5be7954042cff9e82e646247c67388cdc47c1.zip
FreeBSD-src-04b5be7954042cff9e82e646247c67388cdc47c1.tar.gz
Now that the last of the *.sh scripts are gone from the base,
emit a warning if come across one.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 19f9eda..f8e211a 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -900,8 +900,8 @@ run_rc_script()
eval unset ${_arg}_cmd ${_arg}_precmd ${_arg}_postcmd
case "$_file" in
- /etc/rc.d/*.sh) # run in current shell
- set $_arg; . $_file
+ /etc/rc.d/*.sh) # no longer allowed in the base
+ warn "Ignoring old-style startup script $_file"
;;
*[~#]|*.OLD|*.bak|*.orig|*,v) # scratch file; skip
warn "Ignoring scratch file $_file"
OpenPOWER on IntegriCloud