From: S.Çağlar Onur Date: Tue, 15 Mar 2011 18:30:42 +0000 (-0400) Subject: remove hardcoded file list X-Git-Tag: pyplnet-4.3-10~7 X-Git-Url: http://git.onelab.eu/?p=pyplnet.git;a=commitdiff_plain;h=2147e21ee31f5eb6735cd0f42dcaa60cd3270b87 remove hardcoded file list --- diff --git a/modprobe.py b/modprobe.py index e13a658..da1dcaf 100644 --- a/modprobe.py +++ b/modprobe.py @@ -171,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)