Sort the obsolete rc.conf(5) variables to check, and only check

sysctl once(!).
This commit is contained in:
simonb 2006-06-08 20:58:38 +00:00
parent 69ae4b1781
commit b93b04bf77
1 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# $NetBSD: postinstall,v 1.15 2006/05/30 19:31:13 tron Exp $ # $NetBSD: postinstall,v 1.16 2006/06/08 20:58:38 simonb Exp $
# #
# Copyright (c) 2002-2005 The NetBSD Foundation, Inc. # Copyright (c) 2002-2005 The NetBSD Foundation, Inc.
# All rights reserved. # All rights reserved.
@ -759,11 +759,12 @@ do_rc()
# check for obsolete rc.conf(5) variables # check for obsolete rc.conf(5) variables
set -- amd amd_master \ set -- amd amd_master \
mountcritlocal critical_filesystems_beforenet \ critical_filesystems critical_filesystems_beforenet \
mountcritremote critical_filesystems \ defcorename \
network ip6forwarding \ ip6forwarding \
sysctl defcorename \ mountcritlocal mountcritremote \
sysctl nfsiod_flags network nfsiod_flags \
sysctl
while [ $# -gt 1 ]; do while [ $# -gt 1 ]; do
if rcconf_is_set ${op} $1 $2 1; then if rcconf_is_set ${op} $1 $2 1; then
failed=1 failed=1