X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fmodprobe.c;h=106304312a3108944638c53ee0a2d06a6684b0a0;hb=43942b08cfbcf91bef29ec532f3d097a8519c982;hp=7e3d1b70cd13cd2a8190f04e4fe3aa427c38d9b1;hpb=53ce488f380e3dd94c26bf507c5639975125a1ee;p=libguestfs.git diff --git a/daemon/modprobe.c b/daemon/modprobe.c index 7e3d1b7..1063043 100644 --- a/daemon/modprobe.c +++ b/daemon/modprobe.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -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);