D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib64
/
pm-utils
/
sleep.d
/
Filename :
75modules
back
Copy
#!/bin/sh # Unload requested modules. . "${PM_FUNCTIONS}" suspend_modules() { [ -z "$SUSPEND_MODULES" ] && return $NA for x in $SUSPEND_MODULES ; do printf "Unloading kernel module %s..." "$x" modunload $x && echo Done. || echo Failed. done return 0 } resume_modules() { modreload echo "Reloaded unloaded modules." } case "$1" in hibernate|suspend) suspend_modules ;; thaw|resume) resume_modules ;; *) exit $NA ;; esac