FreeBSD Bugzilla – Attachment 142778 Details for
Bug 189854
[patch] Improved /etc/periodic/daily/420.status-network
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.22 KB, created by
Pavel Volkov
on 2014-05-16 09:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Pavel Volkov
Created:
2014-05-16 09:40:00 UTC
Size:
1.22 KB
patch
obsolete
>--- /etc/periodic/daily/420.status-network.orig 2014-05-16 09:11:11.000000000 +0400 >+++ /etc/periodic/daily/420.status-network 2014-05-16 12:06:02.000000000 +0400 >@@ -14,14 +14,28 @@ > case "$daily_status_network_enable" in > [Yy][Ee][Ss]) > echo "" >- echo "Network interface status:" >+ echo "Network status:" > >- case "$daily_status_network_usedns" in >- [Yy][Ee][Ss]) >- netstat -id && rc=0 || rc=3;; >- *) >- netstat -idn && rc=0 || rc=3;; >- esac;; >+ rc=3 >+ : ${daily_status_network_netstat_reports:="if mem"} >+ : ${daily_status_network_netstat_if_header:="Display per-interface statistics:"} >+ : ${daily_status_network_netstat_if_flags:="-i -W -d -b -h -n"} >+ : ${daily_status_network_netstat_mem_header:="Show memory statistics:"} >+ : ${daily_status_network_netstat_mem_flags:="-m"} >+ for _var in ${daily_status_network_netstat_reports}; do >+ eval _flags=daily_status_network_netstat_${_var}_flags >+ eval _flags=\${${_flags}} >+ eval _header=daily_status_network_netstat_${_var}_header >+ eval _header=\${${_header}} >+ if [ -n "${_flags}" ]; then >+ if [ -n "${_header}" -a "${_header}" != "undefined" ]; then >+ echo "" >+ echo "${_header}" >+ fi >+ netstat ${_flags} && rc=0 || rc=3 >+ fi >+ done >+ ;; > > *) rc=0;; > esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 189854
: 142778