Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2011 23:02:32 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227366 - in head/etc: . rc.d
Message-ID:  <201111082302.pA8N2Wmj053356@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Tue Nov  8 23:02:32 2011
New Revision: 227366
URL: http://svn.freebsd.org/changeset/base/227366

Log:
  rc.d: Eliminate some unnecessary non-POSIX constructs:
  
   * set - ...
   * empty braces
   * ^ in character class

Modified:
  head/etc/rc.d/routing
  head/etc/rc.d/syscons
  head/etc/rc.subr

Modified: head/etc/rc.d/routing
==============================================================================
--- head/etc/rc.d/routing	Tue Nov  8 22:50:28 2011	(r227365)
+++ head/etc/rc.d/routing	Tue Nov  8 23:02:32 2011	(r227366)
@@ -247,6 +247,7 @@ static_atm()
 
 static_ipx()
 {
+	:
 }
 
 ropts_init()

Modified: head/etc/rc.d/syscons
==============================================================================
--- head/etc/rc.d/syscons	Tue Nov  8 22:50:28 2011	(r227365)
+++ head/etc/rc.d/syscons	Tue Nov  8 23:02:32 2011	(r227366)
@@ -99,7 +99,7 @@ syscons_configure_keyboard()
 	*)
 		sc_init
 		echo -n ' keychange'
-		set - ${keychange}
+		set -- ${keychange}
 		while [ $# -gt 0 ]; do
 			kbdcontrol <${kbddev} -f "$1" "$2"
 			shift; shift

Modified: head/etc/rc.subr
==============================================================================
--- head/etc/rc.subr	Tue Nov  8 22:50:28 2011	(r227365)
+++ head/etc/rc.subr	Tue Nov  8 23:02:32 2011	(r227366)
@@ -1638,7 +1638,7 @@ find_local_scripts_old () {
 				    continue
 				zlist="$zlist $file"
 			done
-			for file in ${dir}/[^0-9]*.sh; do
+			for file in ${dir}/[!0-9]*.sh; do
 				grep '^# PROVIDE:' $file >/dev/null 2>&1 &&
 				    continue
 				slist="$slist $file"



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