X-Git-Url: http://git.onelab.eu/?p=pyplnet.git;a=blobdiff_plain;f=modprobe.py;h=da311ff413aeb34ab07906f5dd1b31a4f7c25ccb;hp=638ebfa388ae6e2654b2876b95961bc6dd1809d9;hb=c69aa1b29cf0e2900681bbd892df2a260f0d491e;hpb=c096416c7aa9d4a66f4a4039ecb3daa05d151181 diff --git a/modprobe.py b/modprobe.py index 638ebfa..da311ff 100644 --- a/modprobe.py +++ b/modprobe.py @@ -11,7 +11,7 @@ class Modprobe(): def __init__(self,filename="/etc/modprobe.conf"): self.conffile = {} self.origconffile = {} - for keyword in ("alias","options","install","remove","blacklist","MODULES"): + for keyword in ("alias","options","install","remove","blacklist","MODULES","#"): self.conffile[keyword]={} self.filename = filename @@ -24,7 +24,7 @@ class Modprobe(): table = self.conffile.get(command,None) if table == None: - print "WARNING: command %s not recognize. Ignoring!" % command + print "WARNING: command %s not recognized. Ignoring!" % command continue if command == "alias":