Setting tag pyplnet-4.3-20
[pyplnet.git] / modprobe.py
index 5e4053d..da1dcaf 100644 (file)
@@ -1,7 +1,4 @@
 #
-# $Id$
-#
-
 """Modprobe is a utility to read/modify/write /etc/modprobe.conf"""
 
 import os
@@ -174,7 +171,7 @@ if __name__ == '__main__':
     m.input()
 
     blacklist = Modprobe()
-    blacklistfiles = ("blacklist","blacklist-compat","blacklist-firewire")
+    blacklistfiles = os.listdir("/etc/modprobe.d")
     for blf in blacklistfiles:
         if os.path.exists("/etc/modprobe.d/%s"%blf):
             blacklist.input("/etc/modprobe.d/%s"%blf)