=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/netstart,v retrieving revision 1.132 retrieving revision 1.133 diff -c -r1.132 -r1.133 *** src/etc/netstart 2011/05/26 15:22:53 1.132 --- src/etc/netstart 2011/07/07 23:09:46 1.133 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: netstart,v 1.132 2011/05/26 15:22:53 mpf 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.133 2011/07/07 23:09:46 guenther Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout *************** *** 47,57 **** chmod -LR o-rwx $file chown -LR root.wheel $file fi ! ifconfig $if > /dev/null 2>&1 ! if [ "$?" != "0" ]; then # Try to create interface if it does not exist ! ifconfig $if create > /dev/null 2>&1 ! if [ "$?" != "0" ]; then return fi fi --- 47,55 ---- chmod -LR o-rwx $file chown -LR root.wheel $file fi ! if ! ifconfig $if > /dev/null 2>&1; then # Try to create interface if it does not exist ! if ! ifconfig $if create > /dev/null 2>&1; then return fi fi