NetBSD Problem Report #52397
From www@NetBSD.org Wed Jul 12 11:45:44 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id BA33D7A217
for <gnats-bugs@gnats.NetBSD.org>; Wed, 12 Jul 2017 11:45:44 +0000 (UTC)
Message-Id: <20170712114543.C85F47A2A6@mollari.NetBSD.org>
Date: Wed, 12 Jul 2017 11:45:43 +0000 (UTC)
From: chris@sogubsys.com
Reply-To: chris@sogubsys.com
To: gnats-bugs@NetBSD.org
Subject: powerd script references dhclient instead of dhcpcd
X-Send-Pr-Version: www-1.0
>Number: 52397
>Category: misc
>Synopsis: powerd script references dhclient instead of dhcpcd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jul 12 11:50:00 +0000 2017
>Closed-Date: Sun Sep 23 13:56:29 +0000 2018
>Last-Modified: Sun Sep 23 13:56:29 +0000 2018
>Originator: Chris Humphries
>Release: 7.1
>Organization:
>Environment:
NetBSD shrimpy.sogubsys.com 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
>Description:
dhcpcd appears to be the default dhcp client but powerd script for sleep_button wasn't updated to reflect that.
Note that looking into /etc/powerd/scripts/lid_switch script says to look at sleep_button script.
--snip--
oot:shrimpy /etc/powerd/scripts>> grep dhclient *
sleep_button: /etc/rc.d/dhclient stop
sleep_button: /etc/rc.d/dhclient start
root:shrimpy /etc/powerd/scripts>> grep dhclient sleep_button
/etc/rc.d/dhclient stop
/etc/rc.d/dhclient start
root:shrimpy /etc/powerd/scripts>> grep dhclient /etc/rc.conf
root:shrimpy /etc/powerd/scripts>> grep dhclient /etc/defaults/rc.conf
# dhclient) may be needed to get the network operational enough to mount
dhclient=NO # behave as a DHCP client
dhclient_flags="" # blank: config all interfaces
root:shrimpy /etc/powerd/scripts>>
--snip--
>How-To-Repeat:
>Fix:
Update sleep_button script to use dhcpcd instead of dhclient
>Release-Note:
>Audit-Trail:
From: "Roy Marples" <roy@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52397 CVS commit: src/etc/powerd/scripts
Date: Thu, 13 Jul 2017 13:50:48 +0000
Module Name: src
Committed By: roy
Date: Thu Jul 13 13:50:48 UTC 2017
Modified Files:
src/etc/powerd/scripts: sleep_button
Log Message:
Remove the stopping and starting of various network scripts on
sleep / resume.
This should no longer be needed now the various applications
(dhcpcd, ntpd, wpa_supplicant et all) are more aware to the network state
as all interface carriers should be brought down and up again.
Fixes PR misc/52397.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/etc/powerd/scripts/sleep_button
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52397 CVS commit: [netbsd-7] src/etc/powerd/scripts
Date: Sat, 25 Aug 2018 14:54:19 +0000
Module Name: src
Committed By: martin
Date: Sat Aug 25 14:54:18 UTC 2018
Modified Files:
src/etc/powerd/scripts [netbsd-7]: sleep_button
Log Message:
Pull up following revision(s) (requested by roy in ticket #1631):
etc/powerd/scripts/sleep_button: revision 1.11
Remove the stopping and starting of various network scripts on
sleep / resume.
This should no longer be needed now the various applications
(dhcpcd, ntpd, wpa_supplicant et all) are more aware to the network state
as all interface carriers should be brought down and up again.
Fixes PR misc/52397.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.22.1 src/etc/powerd/scripts/sleep_button
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 23 Sep 2018 13:56:29 +0000
State-Changed-Why:
Applied by roy. thanks for the report!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.