X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fmodprobe.c;h=ac62b349e162669583882fb596cc34e784a31c74;hb=1f56debfcfdc35d6b0e7fec469dba0598d7f1901;hp=7e3d1b70cd13cd2a8190f04e4fe3aa427c38d9b1;hpb=53ce488f380e3dd94c26bf507c5639975125a1ee;p=libguestfs.git diff --git a/daemon/modprobe.c b/daemon/modprobe.c index 7e3d1b7..ac62b34 100644 --- a/daemon/modprobe.c +++ b/daemon/modprobe.c @@ -23,6 +23,14 @@ #include "daemon.h" #include "actions.h" +#include "optgroups.h" + +int +optgroup_linuxmodules_available (void) +{ + int r = access ("/sbin/modprobe", X_OK); + return r == 0; +} int do_modprobe (const char *module)