1.0-alt2
- removed () in ifaceinfo
This commit is contained in:
parent
ecba9eb4dc
commit
93c91828ce
@ -2,7 +2,7 @@
|
||||
|
||||
Name: alterator-net-eth
|
||||
Version: 1.0
|
||||
Release: alt1
|
||||
Release: alt2
|
||||
|
||||
Packager: Stanislav Ievlev <inger@altlinux.org>
|
||||
|
||||
@ -54,6 +54,9 @@ alterator module for tcp/ip connections configuration
|
||||
%_alterator_backend3dir/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 29 2008 Vladislav Zavjalov <slazav@altlinux.org> 1.0-alt2
|
||||
- removed () in ifaceinfo
|
||||
|
||||
* Mon Feb 18 2008 Stanislav Ievlev <inger@altlinux.org> 1.0-alt1
|
||||
- little interface improvements
|
||||
- use alterator-sh-functions and libshell
|
||||
|
@ -21,7 +21,9 @@ list_iface()
|
||||
{
|
||||
iflist|
|
||||
while read iface mac; do
|
||||
printf '("%s" label "%s (%s)")' "$iface" "$iface" "$(ifaceinfo "$iface")"
|
||||
local v="$(ifaceinfo "$iface")"
|
||||
[ -z "$v" ] || v="($v)"
|
||||
printf '("%s" label "%s %s")' "$iface" "$iface" "$v"
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user