diff --git a/src/common/module.c b/src/common/module.c index f19f74324c..53355b8185 100644 --- a/src/common/module.c +++ b/src/common/module.c @@ -66,7 +66,7 @@ int module_has_param(const char *module, const char *param) char command[128]; snprintf(command, sizeof(command), - "/sbin/modinfo -F parm %s | /bin/grep -q ^%s:", + "modinfo -F parm %s | grep -q ^%s:", module, param); return run_command(command) == 0; @@ -76,7 +76,7 @@ int module_load(const char *module, const char *options) { char command[128]; - snprintf(command, sizeof(command), "/sbin/modprobe %s %s", + snprintf(command, sizeof(command), "modprobe %s %s", module, (options ? options : "")); return run_command(command);