svn commit: r227366 - in head/etc: . rc.d
Jilles Tjoelker
jilles at FreeBSD.org
Tue Nov 8 23:02:33 UTC 2011
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"
More information about the svn-src-head
mailing list