Changeset 486 for branches/confman-1.9


Ignore:
Timestamp:
11/11/2009 14:24:40 (2 years ago)
Author:
ccowart
Message:

Merging support for the -q flag on confsync.

Resolves #71

Location:
branches/confman-1.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

    • Property svn:mergeinfo changed
      /trunkmerged: 471
  • branches/confman-1.9/confsync.8

    r429 r486  
    3636.Op Fl s 
    3737.Op Fl d 
     38.Op Fl q 
    3839.Nm 
    3940.Fl h 
     
    7576The 
    7677.Fl d 
    77 option can be used to print additional debugging information. 
     78option can be used to print additional debugging information. The 
     79.Fl q 
     80can be used to quiet the log messages by suppressing the "System is up to date" 
     81messages. 
    7882.Pp 
    7983When launched with 
  • branches/confman-1.9/confsync.in

    r483 r486  
    4545 
    4646FORCE=false 
     47QUIET=false 
    4748sleep_mode=false 
    48 while getopts "fsdh" OPT 2>&4 ; do 
     49 
     50while getopts "fqsdh" OPT 2>&4 ; do 
    4951    case $OPT in 
    5052        f)  FORCE=true ;; 
    5153        s)  sleep_mode=true ;; 
    5254        d)  DEBUG=true ;; 
     55        q)  QUIET=true ;; 
    5356        h)  print_help 0;; 
    5457        *)  print_help 1;; 
     
    128131        conf_cleanExit 1 
    129132    elif ! $FORCE && [ $tar_revision -le $sys_revision ] ; then 
    130         echo "System is up to date." | conf_logger 
     133        $QUIET || echo "System is up to date." | conf_logger 
    131134        conf_cleanExit 0 
    132135    fi 
Note: See TracChangeset for help on using the changeset viewer.