From a35bfe5a7a7f2a05e3de21c658ad1bc99b5cd0f7 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sat, 29 May 2004 07:01:03 +0000 Subject: [PATCH] one last route command lacking -qn --- src/etc/netstart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index 1da47a0f..bb0c1d1e 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.96 2004/03/22 04:31:42 mcbride Exp $ +# $OpenBSD: netstart,v 1.97 2004/05/29 07:01:03 deraadt Exp $ # Returns true if $1 contains only alphanumerics isalphanumeric() { @@ -283,7 +283,7 @@ fi # /etc/mygate, if it exists, contains the name of my gateway host # that name must be in /etc/hosts. if [ -f /etc/mygate ]; then - route delete default > /dev/null 2>&1 + route -qn delete default > /dev/null 2>&1 route -qn add -host default `cat /etc/mygate` fi