Minor clean up to modprobe() function.
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 1 Feb 2008 21:41:11 +0000 (21:41 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 1 Feb 2008 21:41:11 +0000 (21:41 +0000)
conf_files/pl_hwinit

index b133cfb..947a1de 100755 (executable)
@@ -8,11 +8,8 @@ import time
 
 loadedmodules = None
 
-def modprobe(module, args = None):
-    if args: 
-        ret = os.system("/sbin/modprobe %s %s" % (module, args))
-    else:
-        ret = os.system("/sbin/modprobe %s" % module)
+def modprobe(module, args = ""):
+    ret = os.system("/sbin/modprobe %s %s" % (module, args))
     if os.WEXITSTATUS(ret) == 0:
         globals()['loadedmodules'].write("%s\n" % module)
         return True