diff options
author | dougb <dougb@FreeBSD.org> | 2009-05-30 21:41:54 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2009-05-30 21:41:54 +0000 |
commit | 04b5be7954042cff9e82e646247c67388cdc47c1 (patch) | |
tree | cc7fbba199c38a105137eb5dbc1c144abb189236 /etc | |
parent | edb66515a00d296986b025807b90de1f9253e1d1 (diff) | |
download | FreeBSD-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.subr | 4 |
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" |