Commit 8cbbb731 authored by jan.koester's avatar jan.koester
Browse files

test

parent a3cc23d0
Loading
Loading
Loading
Loading
+3 −0
Changes for commands/modutils/modprobe.cpp: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -403,6 +403,9 @@ namespace fresh { namespace cmd {
                for(const auto &m: order){
                    auto pit=_nameToPath.find(m);
                    if(pit==_nameToPath.end()) continue; // a dependency that is built in
                    // loaded already (kmod checks the same): finit_module()
                    // would read the whole file before saying EEXIST
                    if(access(("/sys/module/"+m+"/initstate").c_str(),F_OK)==0) continue;
                    std::string p;
                    auto oit=_options.find(m);
                    if(oit!=_options.end()) p=oit->second;