diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-03-20 19:33:44 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-03-20 19:33:44 -0500 |
commit | bf5f55f5b5ec375ac1b0b565011b8bf9d0ccf178 (patch) | |
tree | d8d661e66bc519164548e48e50a56bc81a92b9c6 /pm/functions.in | |
parent | 61e2d92c43953537855e89b744844b0af7b84700 (diff) |
Avoid incorrect exit code 1 failure messages in the log.
Do this by forcing resume_video to always return 0, and by having
modreload expliticly log if it cannot reload a module we unloaded before
suspend.
Diffstat (limited to 'pm/functions.in')
-rw-r--r-- | pm/functions.in | 5 |
1 files changed, 4 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 } |