Re: suspend-to-disk: fan always on and misc kernel errors

Stefan Seyfried
2005-03-28T20:50:27Z

On Sun, Mar 27, 2005 at 07:42:05PM +0200, Andrea Borgia wrote:

> 2) script terminates with error and spews "command not found" problems
> only in the post-wakeup section, even though full pathnames are used
> (see script)

you have some funny special characters in there, no wonder bash barfs on that.

> # Unloading modules
> for M in $RELOAD
> do
> ? ? ? ? if /bin/grep -q "^$M[[:blank:]]" /proc/modules
> ? ? ? ? then
> ? ? ? ? ? ? ? ? /sbin/modprobe -r "$M"
> ? ? ? ? fi
> done

> # Reloading modules...
> for M in $RELOAD
> do
> ? ? ? ? if /bin/grep -q "^$M[[:blank:]]" /proc/modules
> ? ? ? ? then
> ? ? ? ? ? ? ? ? /sbin/modprobe "$M"
> ? ? ? ? fi
> done

--
Stefan Seyfried