Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
pm-utils
/
sleep.d
/
Upload File :
New :
File
Dir
//usr/lib/pm-utils/sleep.d/10NetworkManager
#!/bin/bash . /usr/lib/pm-utils/functions suspend_nm() { # Tell NetworkManager to shut down networking dbus-send --system \ --dest=org.freedesktop.NetworkManager \ /org/freedesktop/NetworkManager \ org.freedesktop.NetworkManager.sleep } resume_nm() { # Wake up NetworkManager and make it do a new connection dbus-send --system \ --dest=org.freedesktop.NetworkManager \ /org/freedesktop/NetworkManager \ org.freedesktop.NetworkManager.wake } case "$1" in hibernate|suspend) suspend_nm ;; thaw|resume) resume_nm ;; *) ;; esac exit $?