Loading libmodprobe/include/modprobe/modprobe.h +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ class Modprobe { public: Modprobe(const std::vector<std::string>&); bool LoadListedModules(); bool LoadListedModules(bool strict = true); bool LoadWithAliases(const std::string& module_name, bool strict, const std::string& parameters = ""); bool Remove(const std::string& module_name); Loading libmodprobe/libmodprobe.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -360,13 +360,15 @@ bool Modprobe::LoadWithAliases(const std::string& module_name, bool strict, return true; } bool Modprobe::LoadListedModules() { bool Modprobe::LoadListedModules(bool strict) { auto ret = true; for (const auto& module : module_load_) { if (!LoadWithAliases(module, true)) { return false; ret = false; if (strict) break; } } return true; return ret; } bool Modprobe::Remove(const std::string& module_name) { Loading Loading
libmodprobe/include/modprobe/modprobe.h +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ class Modprobe { public: Modprobe(const std::vector<std::string>&); bool LoadListedModules(); bool LoadListedModules(bool strict = true); bool LoadWithAliases(const std::string& module_name, bool strict, const std::string& parameters = ""); bool Remove(const std::string& module_name); Loading
libmodprobe/libmodprobe.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -360,13 +360,15 @@ bool Modprobe::LoadWithAliases(const std::string& module_name, bool strict, return true; } bool Modprobe::LoadListedModules() { bool Modprobe::LoadListedModules(bool strict) { auto ret = true; for (const auto& module : module_load_) { if (!LoadWithAliases(module, true)) { return false; ret = false; if (strict) break; } } return true; return ret; } bool Modprobe::Remove(const std::string& module_name) { Loading