
Originally Posted by
Akoellh
Pm-utils - openSUSE
Either adding the kernel module to the list of "SUSPEND_MODULES" or creating a custom hook which
a) reloads kernel modules
and/or
b) restarts network services
will most likely solve the problem.
thanks for advice.
"adding the kernel module to the list of "SUSPEND_MODULES"" I have no idea how to do it and where? edit hook called modules ?
as for modules reload i post my "50modules" hook that is present in pm-utils, is it enough?
Code:
#!/bin/bash
. /usr/lib/pm-utils/functions
suspend_modules()
{
[ -z "$SUSPEND_MODULES" ] && return 0
for x in $SUSPEND_MODULES ; do
echo "trying to unload: $x"
modunload $x
done
return 0
}
resume_modules()
{
[ -z "$RESUME_MODULES" ] && return 0
for x in $RESUME_MODULES ; do
echo "trying to reload: $x"
modprobe $x
done
}
case "$1" in
hibernate|suspend)
suspend_modules
;;
thaw|resume)
resume_modules
;;
*)
;;
esac
exit $?
and as for restart of network service hook: what number should it be and should it be something like: /etc/rc.d/network restart
I would appreciate your help alot .
A