Author: jhb
Date: Wed Jun 20 20:01:51 2012
New Revision: 237337
URL: http://svn.freebsd.org/changeset/base/237337

Log:
  Only output a list of file systems that need to be dumped if the system
  has a non-empty dumpdates file.
  
  Reviewed by:  brooks
  MFC after:    1 week

Modified:
  head/etc/periodic/daily/400.status-disks

Modified: head/etc/periodic/daily/400.status-disks
==============================================================================
--- head/etc/periodic/daily/400.status-disks    Wed Jun 20 18:35:36 2012        
(r237336)
+++ head/etc/periodic/daily/400.status-disks    Wed Jun 20 20:01:51 2012        
(r237337)
@@ -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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to