Module Name: src
Committed By: martin
Date: Wed Apr 1 16:38:46 UTC 2009
Modified Files:
src/usr.sbin/postinstall: postinstall
Log Message:
Make the ddb.onpanic line acceptable even if commented out
To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 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.91 src/usr.sbin/postinstall/postinstall:1.92
--- src/usr.sbin/postinstall/postinstall:1.91 Wed Mar 11 23:22:57 2009
+++ src/usr.sbin/postinstall/postinstall Wed Apr 1 16:38:46 2009
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall,v 1.91 2009/03/11 23:22:57 martin Exp $
+# $NetBSD: postinstall,v 1.92 2009/04/01 16:38:46 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