Browse Source

one last route command lacking -qn

OPENBSD_3_6
deraadt 20 years ago
parent
commit
a35bfe5a7a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/netstart

+ 2
- 2
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 # Returns true if $1 contains only alphanumerics
isalphanumeric() { isalphanumeric() {
@ -283,7 +283,7 @@ fi
# /etc/mygate, if it exists, contains the name of my gateway host # /etc/mygate, if it exists, contains the name of my gateway host
# that name must be in /etc/hosts. # that name must be in /etc/hosts.
if [ -f /etc/mygate ]; then 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` route -qn add -host default `cat /etc/mygate`
fi fi


Loading…
Cancel
Save