X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fmodprobe.c;fp=daemon%2Fmodprobe.c;h=ac62b349e162669583882fb596cc34e784a31c74;hb=2d9953097b6d3b71122d444a4550047e97aee009;hp=7e3d1b70cd13cd2a8190f04e4fe3aa427c38d9b1;hpb=8fd7f255d611d2092a244c4a48c6b7b4529e98b1;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)