=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/netstart,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/etc/netstart 1996/06/02 21:17:58 1.6 --- src/etc/netstart 1996/06/16 12:57:31 1.7 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: netstart,v 1.6 1996/06/02 21:17:58 tholo Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=-q --- 1,6 ---- #!/bin/sh - # ! # $OpenBSD: netstart,v 1.7 1996/06/16 12:57:31 deraadt Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=-q *************** *** 120,134 **** # /etc/ifaliases, if it exists, contains the names of additional IP # addresses for each interface. It is formatted as a series of lines # that contain ! # address interface if [ -f /etc/ifaliases ]; then ( ! set -- `cat /etc/ifaliases` ! while [ $# -ge 2 ] ; do ! ifconfig $2 inet alias $1 ! route add $1 localhost ! shift 2 done ) fi --- 120,135 ---- # /etc/ifaliases, if it exists, contains the names of additional IP # addresses for each interface. It is formatted as a series of lines # that contain ! # interface address netmask if [ -f /etc/ifaliases ]; then ( ! # delete comments and blank lines ! set -- `sed -e 's/#.*$//' /etc/ifaliases | grep -v '^$'` ! while [ $# -ge 3 ] ; do ! ifconfig $1 inet alias $2 netmask $3 ! route add $2 localhost ! shift 3 done ) fi