packages: martian/martian.init - is_module is some total bullshit, just use...

glen glen at pld-linux.org
Sat Aug 13 14:03:49 CEST 2011


Author: glen                         Date: Sat Aug 13 12:03:48 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- is_module is some total bullshit, just use /sys/module to check if module is loaded

---- Files affected:
packages/martian:
   martian.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/martian/martian.init
diff -u packages/martian/martian.init:1.1 packages/martian/martian.init:1.2
--- packages/martian/martian.init:1.1	Sat Aug 13 13:39:35 2011
+++ packages/martian/martian.init	Sat Aug 13 14:03:43 2011
@@ -32,7 +32,7 @@
 # must return non-zero if check failed
 # output is discarded if checkconfig is ran without details
 configtest() {
-	if ! is_module martian_dev; then
+	if [ ! -d /sys/module/martian_dev ]; then
 		nls "kernel module %s is not loaded!" martian_dev
 		return 1
 	fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/martian/martian.init?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list