From 806147ab82e8d8ef26314642a24cff6eace28b93 Mon Sep 17 00:00:00 2001 From: rpe <> Date: Tue, 18 Jul 2017 16:29:44 +0000 Subject: [PATCH] Use numerical sysctl output to check for nfs mounts. OK tb@ --- src/etc/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 94820fab..e53aafcc 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.511 2017/07/17 18:52:26 rpe Exp $ +# $OpenBSD: rc,v 1.512 2017/07/18 16:29:44 rpe Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -422,7 +422,7 @@ if [[ $pf != NO ]]; then pass in proto carp keep state (no-sync) pass out proto carp !received-on any keep state (no-sync)" - if [[ $(sysctl vfs.mounts.nfs 2>/dev/null) == *[1-9]* ]]; then + if (($(sysctl -n vfs.mounts.nfs 2>/dev/null) > 0)); then # Don't kill NFS. RULES="set reassemble yes no-df $RULES