modules-load: filter out double modules

This commit is contained in:
Lennart Poettering 2011-09-21 02:57:02 +02:00
parent 13230d5d3c
commit c72dcc5431

View File

@ -131,6 +131,7 @@ finish:
if (n_arguments > 3) {
arguments[n_arguments] = NULL;
strv_uniq(arguments);
execv("/sbin/modprobe", arguments);
log_error("Failed to execute /sbin/modprobe: %m");