From 3a4fd3b0ad4992625d4b579e2a054aabfdd89779 Mon Sep 17 00:00:00 2001 From: rpe <> Date: Thu, 12 Nov 2015 23:00:13 +0000 Subject: [PATCH] Changes to ifmstart(): - Change comments to make it clearer that ifmstart() takes two lists of interface driver names (of which the second is optional) and not the actual interface instances. - Use localized variables and use slightly more verbose names. - Use continue 2 to skip to the next hostname.if file. - Use shell pattern @() instead of testing _sif individually. OK krw@ --- src/etc/netstart | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index c39c56fc..e1d23212 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.160 2015/11/12 22:50:46 rpe Exp $ +# $OpenBSD: netstart,v 1.161 2015/11/12 23:00:13 rpe Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -130,27 +130,25 @@ ifstart() { done