=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/netstart,v retrieving revision 1.102 retrieving revision 1.103 diff -c -r1.102 -r1.103 *** src/etc/netstart 2005/01/04 15:40:53 1.102 --- src/etc/netstart 2005/04/03 19:39:31 1.103 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: netstart,v 1.102 2005/01/04 15:40:53 mcbride Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout --- 1,6 ---- #!/bin/sh - # ! # $OpenBSD: netstart,v 1.103 2005/04/03 19:39:31 deraadt Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout *************** *** 83,88 **** --- 83,89 ---- [ "$bcaddr" = "NONE" ] && bcaddr= ifconfig $if $name $mask $bcaddr $ext1 $ext2 down cmd="dhclient $if" + setgateway=N ;; "rtsol") ifconfig $if $name $mask $bcaddr $ext1 $ext2 up *************** *** 320,326 **** # /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 -qn delete default > /dev/null 2>&1 route -qn add -host default `stripcom /etc/mygate` fi --- 321,327 ---- # /etc/mygate, if it exists, contains the name of my gateway host # that name must be in /etc/hosts. ! if [ "X${setgateway} != X"N" -a -f /etc/mygate ]; then route -qn delete default > /dev/null 2>&1 route -qn add -host default `stripcom /etc/mygate` fi