summaryrefslogtreecommitdiff
path: root/regress/sys/net
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2013-09-11 20:37:10 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2013-09-11 20:37:10 +0000
commit28343db6513885510fcd4c1d59e993d5e9ef097f (patch)
treed4cbb59bbe95d50e5268df35304526512385e1fd /regress/sys/net
parent5b855919d105bf30ccca0aa18823f60c5939934a (diff)
Enable pf if it's not already running.
Diffstat (limited to 'regress/sys/net')
-rw-r--r--regress/sys/net/pflow/flow.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/net/pflow/flow.pl b/regress/sys/net/pflow/flow.pl
index fc5391dccd0..a982300100d 100644
--- a/regress/sys/net/pflow/flow.pl
+++ b/regress/sys/net/pflow/flow.pl
@@ -1,5 +1,5 @@
#! /usr/bin/perl
-# $OpenBSD: flow.pl,v 1.1 2013/08/23 08:25:58 florian Exp $
+# $OpenBSD: flow.pl,v 1.2 2013/09/11 20:37:09 florian Exp $
# Copyright (c) 2013 Florian Obser <florian@openbsd.org>
#
@@ -153,8 +153,8 @@ close($prog) or die $!;
open($prog, 'pfctl -si|') or die $!;
$line = <$prog>;
close($prog);
-system('pfctl', '-q -e') if ($line!~/^Status: Enabled/);
+system('pfctl', '-q', '-e') if ($line!~/^Status: Enabled/);
if (`ifconfig pflow0 2>&1` ne "pflow0: no such interface\n") {
system('ifconfig', 'pflow0', 'destroy');