Module Name:    src
Committed By:   snj
Date:           Tue Apr  7 23:36:38 UTC 2009

Modified Files:
        src/usr.sbin/postinstall [netbsd-5]: postinstall

Log Message:
Pull up following revision(s) (requested by martin in ticket #672):
        usr.sbin/postinstall/postinstall: revision 1.93 via patch
Now that we use ?= to optionally assing to ddb.onpanic, match that when
testint existing configurations too.

For 5.0, do the same with kern.no_sa_support.


To generate a diff of this commit:
cvs rdiff -u -r1.76.2.15 -r1.76.2.16 src/usr.sbin/postinstall/postinstall

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/postinstall/postinstall
diff -u src/usr.sbin/postinstall/postinstall:1.76.2.15 src/usr.sbin/postinstall/postinstall:1.76.2.16
--- src/usr.sbin/postinstall/postinstall:1.76.2.15	Fri Apr  3 17:52:48 2009
+++ src/usr.sbin/postinstall/postinstall	Tue Apr  7 23:36:38 2009
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.76.2.15 2009/04/03 17:52:48 snj Exp $
+# $NetBSD: postinstall,v 1.76.2.16 2009/04/07 23:36:38 snj Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -667,7 +667,7 @@
 {
 	[ -n "$1" ] || err 3 "USAGE: do_ddbonpanic  fix|check"
 
-	if ${GREP} -E '^#*[[:space:]]*ddb\.onpanic[[:space:]]*=[[:space:]]*[[:digit:]]+' \
+	if ${GREP} -E '^#*[[:space:]]*ddb\.onpanic[[:space:]]*\??=[[:space:]]*[[:digit:]]+' \
 		"${DEST_DIR}/etc/sysctl.conf" >/dev/null 2>&1
 	then
 		result=0
@@ -889,7 +889,7 @@
 {
 	[ -n "$1" ] || err 3 "USAGE: do_nosa  fix|check"
 
-	if ${GREP} -E '^#*[[:space:]]*kern\.no_sa_support[[:space:]]*=[[:space:]]*[[:digit:]]+' \
+	if ${GREP} -E '^#*[[:space:]]*kern\.no_sa_support[[:space:]]*\??=[[:space:]]*[[:digit:]]+' \
 		"${DEST_DIR}/etc/sysctl.conf" >/dev/null 2>&1
 	then
 		result=0

Reply via email to