[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

kmodule does not look into /lib/modules/`uname -r`/extra



I have a proprietary drivers that install modules
into /lib/modules/`unmae -r`/extra .
For me it's the right place.

But kmodule don't look into extra directory.
Which one is wrong ?

The code (kmodule.c from initscripts) :
        int isAvailable(char *modulename)
        {
                struct utsname utsbuf;
                char path[512];
        
                uname(&utsbuf);
                snprintf(mod_name,100,"%s.ko",modulename);
                snprintf(cmod_name,100,"%s.ko.gz",modulename);
                snprintf(path,512,"/lib/modules/%s/kernel",utsbuf.release);
                /* Do not set the third argument of this function to < 6. Blarg. */
                if (ftw(path,isModule,15) == 1) {
                        return 1;
                }
                return 0;
        }

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]