git://git.onelab.eu
/
pyplnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't whine about comments in modprobe.conf.
[pyplnet.git]
/
modprobe.py
diff --git
a/modprobe.py
b/modprobe.py
index
638ebfa
..
da311ff
100644
(file)
--- a/
modprobe.py
+++ b/
modprobe.py
@@
-11,7
+11,7
@@
class Modprobe():
def __init__(self,filename="/etc/modprobe.conf"):
self.conffile = {}
self.origconffile = {}
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
self.conffile[keyword]={}
self.filename = filename
@@
-24,7
+24,7
@@
class Modprobe():
table = self.conffile.get(command,None)
if table == None:
table = self.conffile.get(command,None)
if table == None:
- print "WARNING: command %s not recognize. Ignoring!" % command
+ print "WARNING: command %s not recognize
d
. Ignoring!" % command
continue
if command == "alias":
continue
if command == "alias":