Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2009 21:41:54 +0000 (UTC)
From:      Doug Barton <dougb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193118 - head/etc
Message-ID:  <200905302141.n4ULfs1F019955@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougb
Date: Sat May 30 21:41:54 2009
New Revision: 193118
URL: http://svn.freebsd.org/changeset/base/193118

Log:
  Now that the last of the *.sh scripts are gone from the base,
  emit a warning if come across one.

Modified:
  head/etc/rc.subr

Modified: head/etc/rc.subr
==============================================================================
--- head/etc/rc.subr	Sat May 30 21:21:03 2009	(r193117)
+++ head/etc/rc.subr	Sat May 30 21:41:54 2009	(r193118)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905302141.n4ULfs1F019955>