Date: Tue, 26 Jan 2016 08:45:19 +0000 (UTC) From: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r294780 - stable/10/etc/periodic/daily Message-ID: <201601260845.u0Q8jJqV044107@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Tue Jan 26 08:45:19 2016 New Revision: 294780 URL: https://svnweb.freebsd.org/changeset/base/294780 Log: MFH (r290743): support an exclusion regex, like security/200.chkmounts Modified: stable/10/etc/periodic/daily/400.status-disks Directory Properties: stable/10/ (props changed) Modified: stable/10/etc/periodic/daily/400.status-disks ============================================================================== --- stable/10/etc/periodic/daily/400.status-disks Tue Jan 26 08:44:01 2016 (r294779) +++ stable/10/etc/periodic/daily/400.status-disks Tue Jan 26 08:45:19 2016 (r294780) @@ -16,7 +16,12 @@ case "$daily_status_disks_enable" in echo "" echo "Disk status:" - df $daily_status_disks_df_flags && rc=1 || rc=3 + if [ -n "${daily_status_disks_ignore}" ] ; then + ignore="egrep -v ${daily_status_disks_ignore}" + else + ignore="cat" + fi + (df $daily_status_disks_df_flags | ${ignore}) && rc=1 || rc=3 # display which filesystems need backing up if [ -s /etc/dumpdates ]; then
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601260845.u0Q8jJqV044107>