If not doing full_netstat, use the -v option anyway to avoid truncating
interface names like bridge0 or pppoe0 - the awk post processing reserves enough space for the column already.
This commit is contained in:
parent
508c6e7767
commit
5a942efb7b
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: daily,v 1.60 2004/04/09 17:35:21 kim Exp $
|
||||
# $NetBSD: daily,v 1.61 2004/05/28 03:55:30 martin Exp $
|
||||
# @(#)daily 8.2 (Berkeley) 1/25/94
|
||||
#
|
||||
|
||||
|
@ -218,7 +218,7 @@ if checkyesno check_network; then
|
|||
if checkyesno full_netstat; then
|
||||
netstat -inv
|
||||
else
|
||||
netstat -in | awk 'BEGIN {
|
||||
netstat -inv | awk 'BEGIN {
|
||||
ifs[""] = 0;
|
||||
}
|
||||
/^[^\*]* / {
|
||||
|
|
Loading…
Reference in New Issue