- m.aliasset("bond0","bonding")
- m.optionsset("bond0","miimon=100")
- m.output("/tmp/x")
+
+ blacklist = Modprobe()
+ 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)
+
+ m.output("/tmp/%s-tmp"%os.path.basename(fn),"TEST")
+ blacklist.output("/tmp/blacklist-tmp.txt","TEST")