Now that we use ?= to optionally assing to ddb.onpanic, match that when

testint existing configurations too.
This commit is contained in:
martin 2009-04-06 00:30:33 +00:00
parent d5a18ca183
commit ecad31aebd

View File

@ -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 @@ do_ddbonpanic()
{
[ -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