From: kn Date: Fri, 16 Dec 2022 17:57:39 +0000 (+0000) Subject: zap double space and needless line break X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5e544b4ec6c713e93d51788ad3670eed7ba0826c;p=openbsd zap double space and needless line break --- diff --git a/etc/netstart b/etc/netstart index 8377f85ac7c..eefffc3cdef 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.231 2022/12/16 04:04:25 afresh1 Exp $ +# $OpenBSD: netstart,v 1.232 2022/12/16 17:57:39 kn Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -140,7 +140,7 @@ ifstart() { if [[ $_if == +([[:alpha:]])+([[:digit:]]) ]]; then _lladdr=$(ifconfig $_if 2>/dev/null | sed -n 's/^[[:space:]]*lladdr[[:space:]]//p') - if [[ -n $_lladdr && -f /etc/hostname.$_lladdr && \ + if [[ -n $_lladdr && -f /etc/hostname.$_lladdr && -n $(ifconfig -M "$_lladdr") ]]; then print -u2 "${0##*/}: $_hn: /etc/hostname.$_lladdr overrides" return