Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/powerd/scripts Remove the stopping and starting of vario...



details:   https://anonhg.NetBSD.org/src/rev/c97c8249f0cc
branches:  trunk
changeset: 825413:c97c8249f0cc
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Jul 13 13:50:48 2017 +0000

description:
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.

diffstat:

 etc/powerd/scripts/sleep_button |  16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diffs (39 lines):

diff -r 90aee9e5db4e -r c97c8249f0cc etc/powerd/scripts/sleep_button
--- a/etc/powerd/scripts/sleep_button   Thu Jul 13 13:27:08 2017 +0000
+++ b/etc/powerd/scripts/sleep_button   Thu Jul 13 13:50:48 2017 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: sleep_button,v 1.10 2011/10/17 23:27:41 jmcneill Exp $
+#      $NetBSD: sleep_button,v 1.11 2017/07/13 13:50:48 roy Exp $
 #
 # Generic script for sleep button events.
 #
@@ -10,13 +10,6 @@
 
 case "${2}" in
 pressed)
-
-       /etc/rc.d/bluetooth stop
-       /etc/rc.d/ntpd stop
-       /etc/rc.d/dhclient stop
-       /etc/rc.d/network stop
-       /etc/rc.d/wpa_supplicant stop
-
        if /sbin/sysctl -q hw.acpi.sleep.state; then
                /sbin/sysctl -w hw.acpi.sleep.state=3
        elif /sbin/sysctl -q machdep.xen.suspend; then
@@ -31,13 +24,6 @@
                # ... waking up
                sleep 1
        fi
-
-       /etc/rc.d/wpa_supplicant start
-       /etc/rc.d/network start
-       /etc/rc.d/dhclient start
-       /etc/rc.d/ntpdate start
-       /etc/rc.d/ntpd start
-       /etc/rc.d/bluetooth start
        ;;
 
 released)



Home | Main Index | Thread Index | Old Index