modprobe: Get module initstate from /proc/modules if not supported via sysfs
Apparently /sys/module/<module>/initstate only appeared in 2.6.20,
which is still in use.
Copy the original module_in_kernel() verbatim from the GIT archives,
and use it as a fallback if module_in_sysfs() doesn't work.
The original patch suggestion was shorter, but less obvious, adding
more untested code, and turned out to be harder to test.
References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524940
Reported-by: Matthew J. Lockner <mlockner@iastate.edu>
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>