Author: rea (ports committer)
Date: Fri Jan 20 17:19:50 2012
New Revision: 230388
URL: http://svn.freebsd.org/changeset/base/230388

Log:
  dhclient: don't use syslog for logging non-DHCP interface errors
  
  We should show the error to user, but it doesn't deserve syslog.
  
  Approved by: jhb

Modified:
  head/etc/rc.d/dhclient

Modified: head/etc/rc.d/dhclient
==============================================================================
--- head/etc/rc.d/dhclient      Fri Jan 20 17:18:54 2012        (r230387)
+++ head/etc/rc.d/dhclient      Fri Jan 20 17:19:50 2012        (r230388)
@@ -25,11 +25,11 @@ dhclient_pre_check()
                local msg
                msg="'$ifn' is not a DHCP-enabled interface"
                if [ -z "${rc_quiet}" ]; then
-                       err 1 "$msg"
+                       echo "$msg"
                else
                        debug "$msg"
-                       exit 1
                fi
+                       exit 1
        fi
 }
 
_______________________________________________
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