From 04b5be7954042cff9e82e646247c67388cdc47c1 Mon Sep 17 00:00:00 2001 From: dougb Date: Sat, 30 May 2009 21:41:54 +0000 Subject: Now that the last of the *.sh scripts are gone from the base, emit a warning if come across one. --- etc/rc.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') 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" -- cgit v1.1