Date: Fri, 29 Jun 2012 17:28:58 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r237810 - stable/8/etc/periodic/daily Message-ID: <201206291728.q5THSwnw059499@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Fri Jun 29 17:28:58 2012 New Revision: 237810 URL: http://svn.freebsd.org/changeset/base/237810 Log: MFC 237337: Only output a list of file systems that need to be dumped if the system has a non-empty dumpdates file. Modified: stable/8/etc/periodic/daily/400.status-disks Directory Properties: stable/8/etc/ (props changed) Modified: stable/8/etc/periodic/daily/400.status-disks ============================================================================== --- stable/8/etc/periodic/daily/400.status-disks Fri Jun 29 17:28:48 2012 (r237809) +++ stable/8/etc/periodic/daily/400.status-disks Fri Jun 29 17:28:58 2012 (r237810) @@ -19,12 +19,15 @@ case "$daily_status_disks_enable" in df $daily_status_disks_df_flags && rc=1 || rc=3 # display which filesystems need backing up - if ! [ -f /etc/fstab ]; then - export PATH_FSTAB=/dev/null - fi + if [ -s /etc/dumpdates ]; then + if ! [ -f /etc/fstab ]; then + export PATH_FSTAB=/dev/null + fi - echo "" - dump W || rc=3;; + echo "" + dump W || rc=3 + fi + ;; *) rc=0;; esac
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206291728.q5THSwnw059499>