=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/rc,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/etc/rc 1996/12/22 20:14:09 1.28 --- src/etc/rc 1997/02/03 12:04:44 1.29 *************** *** 1,4 **** ! # $OpenBSD: rc,v 1.28 1996/12/22 20:14:09 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. --- 1,4 ---- ! # $OpenBSD: rc,v 1.29 1997/02/03 12:04:44 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. *************** *** 75,80 **** --- 75,96 ---- mount /usr >/dev/null 2>&1 mount /var >/dev/null 2>&1 + + # /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 if [ X"${ipfilter}" = X"YES" -a X"${ipmon_flags}" != X"NO" ]; then ipmon ${ipmon_flags} &