Module Name: src
Committed By: martin
Date: Mon Apr 6 00:30:33 UTC 2009
Modified Files:
src/usr.sbin/postinstall: postinstall
Log Message:
Now that we use ?= to optionally assing to ddb.onpanic, match that when
testint existing configurations too.
To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 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.92 src/usr.sbin/postinstall/postinstall:1.93
--- src/usr.sbin/postinstall/postinstall:1.92 Wed Apr 1 16:38:46 2009
+++ src/usr.sbin/postinstall/postinstall Mon Apr 6 00:30:33 2009
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall,v 1.92 2009/04/01 16:38:46 martin Exp $
+# $NetBSD: postinstall,v 1.93 2009/04/06 00:30:33 martin Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -670,7 +670,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