From owner-freebsd-current@FreeBSD.ORG Thu Jul 4 07:15:23 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 13424CDF for ; Thu, 4 Jul 2013 07:15:23 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id EE43E122A for ; Thu, 4 Jul 2013 07:15:22 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.6/8.14.6) with ESMTP id r647FLcj077999 for ; Thu, 4 Jul 2013 00:15:21 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.6/8.14.6/Submit) id r647FLMF077998 for freebsd-current@freebsd.org; Thu, 4 Jul 2013 00:15:21 -0700 (PDT) (envelope-from sgk) Date: Thu, 4 Jul 2013 00:15:21 -0700 From: Steve Kargl To: freebsd-current@freebsd.org Subject: devd or dhclient or ifconfig behavior seems broken Message-ID: <20130704071521.GA77965@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 07:15:23 -0000 For years after connecting wlan0 via dhcp to a spotted router, I would occasionially need to do ifconfig wlan0 down ifconfig wlan0 up This would toggle % ifconfig wlan0 | grep media media: IEEE 802.11 Wireless Ethernet OFDM/6Mbps mode 11g to % ifconfig wlan0 | grep media media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g After rebuilding, installing, and rebooting a new world, I find the following in /var/log/messages Jul 4 00:05:03 laptop-kargl kernel: wlan0: link state changed to DOWN Jul 4 00:05:04 laptop-kargl kernel: wlan0: link state changed to UP Jul 4 00:05:04 laptop-kargl devd: Executing '/etc/rc.d/dhclient quietstart wlan0 So, devd is firing off a new dhclient. This has never occurred before. But, to make matters worse. The new dhclient appears to be nuking /etc/resolv.conf. Has anyone seen such behavior? How do I stop devd and/or dhclient from nuking resolv.conf? -- Steve