summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pm/functions.in5
-rwxr-xr-xpm/sleep.d/99video1
2 files changed, 5 insertions, 1 deletions
diff --git a/pm/functions.in b/pm/functions.in
index af4e291..d804ad0 100644
--- a/pm/functions.in
+++ b/pm/functions.in
@@ -123,7 +123,10 @@ modunload()
modreload()
{
for x in "${STORAGEDIR}"/module:* ; do
- [ -O "${x}" ] && modprobe "${x##*:}" >/dev/null 2>&1
+ [ -O "${x}" ] || continue
+ modprobe "${x##*:}" >/dev/null 2>&1 || \
+ log "Could not reload module ${x##*:}."
+
done
}
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index 1663dff..1f99f85 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -110,6 +110,7 @@ resume_video()
quirk "${QUIRK_RADEON_OFF}" && radeon_on
quirk "${QUIRK_DPMS_ON}" && vbe dpms on
quirk "${QUIRK_RESET_BRIGHTNESS}" && reset_brightness
+ return 0 # avoid spurious hook exit failure message.
}
help() {