X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fmodprobe.c;h=0d7318c3742e6a8c077e522258083a976d6b1724;hp=7e3d1b70cd13cd2a8190f04e4fe3aa427c38d9b1;hb=d600342b7d29c0176ff96a7807ebb38303ecb3a6;hpb=53ce488f380e3dd94c26bf507c5639975125a1ee diff --git a/daemon/modprobe.c b/daemon/modprobe.c index 7e3d1b7..0d7318c 100644 --- a/daemon/modprobe.c +++ b/daemon/modprobe.c @@ -23,12 +23,19 @@ #include "daemon.h" #include "actions.h" +#include "optgroups.h" + +int +optgroup_linuxmodules_available (void) +{ + return prog_exists ("modprobe"); +} int do_modprobe (const char *module) { char *err; - int r = command (NULL, &err, "/sbin/modprobe", module, NULL); + int r = command (NULL, &err, "modprobe", module, NULL); if (r == -1) { reply_with_error ("%s", err);