=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/netstart,v retrieving revision 1.148 retrieving revision 1.149 diff -c -r1.148 -r1.149 *** src/etc/netstart 2015/07/19 01:37:45 1.148 --- src/etc/netstart 2015/07/19 04:44:36 1.149 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: netstart,v 1.148 2015/07/19 01:37:45 rpe 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.149 2015/07/19 04:44:36 rpe Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) from a file # and spew to stdout. *************** *** 132,150 **** for hn in /etc/hostname.*; do # Strip off /etc/hostname. prefix. if=${hn#/etc/hostname.} ! test "$if" = "*" && continue # Skip unwanted ifs. s="" for xf in $2; do ! test "$xf" = "${if%%[0-9]*}" && s="1" && break done ! test "$s" = "1" && continue # Start wanted ifs. ! test "$sif" = "ALL" -o \ ! "$sif" = "${if%%[0-9]*}" \ ! && ifstart $if done done } --- 132,149 ---- for hn in /etc/hostname.*; do # Strip off /etc/hostname. prefix. if=${hn#/etc/hostname.} ! [ "$if" = "*" ] && continue # Skip unwanted ifs. s="" for xf in $2; do ! [ "$xf" = "${if%%[0-9]*}" ] && s="1" && break done ! [ "$s" = "1" ] && continue # Start wanted ifs. ! [ "$sif" = "ALL" -o "$sif" = "${if%%[0-9]*}" ] && ! ifstart $if done done }