diff options
Diffstat (limited to 'daemon/modprobe.c')
-rw-r--r-- | daemon/modprobe.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/daemon/modprobe.c b/daemon/modprobe.c index 7e3d1b70..ac62b349 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) |