summaryrefslogtreecommitdiff
path: root/etc/netstart
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-29 07:01:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-05-29 07:01:04 +0000
commit88dbd2de2fd9a83f7bfc41f63e33a4fcd52c8f26 (patch)
tree80d4395b28773032ad5ab373e70f8072c56923bf /etc/netstart
parent2c3f3f38058736ef42335063d21c4481c1a7971f (diff)
one last route command lacking -qn
Diffstat (limited to 'etc/netstart')
-rw-r--r--etc/netstart4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/netstart b/etc/netstart
index 1da47a0f52e..bb0c1d1e372 100644
--- a/etc/netstart
+++ b/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