diff options
author | rea <rea@FreeBSD.org> | 2014-05-20 19:55:59 +0000 |
---|---|---|
committer | rea <rea@FreeBSD.org> | 2014-05-20 19:55:59 +0000 |
commit | 4b5f56c9a5abe349da83b1db1da48e737ec7e769 (patch) | |
tree | d39b436137f36c1a1d04356ecad14d20a8080594 /etc/network.subr | |
parent | 2830ed6fcda2326b33f7a4bfe30b6aa54dba9b5a (diff) | |
download | FreeBSD-src-4b5f56c9a5abe349da83b1db1da48e737ec7e769.zip FreeBSD-src-4b5f56c9a5abe349da83b1db1da48e737ec7e769.tar.gz |
Fix warning messages after r252015
$alias used to hold alias number, but now it carries full variable name,
so messages were tuned to account for that.
Other fixes:
- eliminate unneeded double spaces;
- tell user where inet/inet6 keywords are expected to be.
Reviewed by: hrs
MFC after: 1 week
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/network.subr b/etc/network.subr index abbafa9..f841872 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -184,7 +184,7 @@ ifconfig_up() # backward compatibility: inet6 keyword case "${ifconfig_args}" in :*|[0-9a-fA-F]*:*) - warn "\$ifconfig_$1_ipv6 needs " \ + warn "\$ifconfig_$1_ipv6 needs leading" \ "\"inet6\" keyword for an IPv6 address." ifconfig_args="inet6 ${ifconfig_args}" ;; @@ -1110,7 +1110,7 @@ ifalias_af_common() ;; inet:alias:"":*) _aliasn="$_aliasn inet $ifconfig_args" - warn "\$ifconfig_${_if}_alias${alias} needs " \ + warn "\$${alias} needs leading" \ "\"inet\" keyword for an IPv4 address." esac done @@ -1128,9 +1128,8 @@ ifalias_af_common() ;; alias:*) _aliasn="${_aliasn} inet6 ${ifconfig_args}" - warn "\$ipv6_ifconfig_${_if}_alias${alias} " \ - "is obsolete. Use ifconfig_$1_aliasN " \ - "instead." + warn "\$${alias} is obsolete. " \ + "Use ifconfig_$1_aliasN instead." ;; esac done |