--- sndconfig-0.70/sndconfig.c.blino 2004-01-24 21:22:03.853066032 +0100 +++ sndconfig-0.70/sndconfig.c 2004-01-24 21:29:36.578241344 +0100 @@ -837,6 +837,7 @@ return 0; } +#if 0 int isAvailable(char *modulename) { struct utsname utsbuf; @@ -904,7 +905,15 @@ return 1; } return 0; } +#endif + +int isAvailable(char *modulename) +{ + char buf[255]; + snprintf(buf, 255, "modprobe -l|egrep -q '^.*/%s\.k?o(\.gz)?$'", modulename); + return system(buf) == 0; +} static int EditSettings(int pnpprobe, struct settings *set, struct settings *currset)