diff --git a/library/system/modprobe b/library/system/modprobe index 82ca86b9bd5..864952ae5b0 100644 --- a/library/system/modprobe +++ b/library/system/modprobe @@ -60,8 +60,9 @@ def main(): try: modules = open('/proc/modules') present = False + module_name = args['name'].replace('-', '_') + ' ' for line in modules: - if line.startswith(args['name'] + ' '): + if line.startswith(module_name): present = True break modules.close()