Hi,

A Debian user complained about the line

  if lsmod | grep -q autofs[^4]

in the init.d script failing on monolithic kernels (lsmod outputs "lsmod:
QM_MODULES: Function not implemented" and fails with exit code 1, which makes
the entire init.d script stop due to set -e). Ian, could you change this to
something like this in time for 4.1.4?

  if ( [ -f /proc/modules ] && lsmod ) | grep -q autofs[^4]

I haven't been able to test it myself except on a module-enabled machine (I
have no machines without module support readily available), but it looks
quite straightforward to me and should fix the problem.

(Actually, the line reads elsif in our version, but that's a different story,
which we've discussed here briefly earlier :-) )

/* Steinar */
-- 
Homepage: http://www.sesse.net/

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to