git://git.onelab.eu
/
bootcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c54c4ec
)
Minor clean up to modprobe() function.
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 1 Feb 2008 21:41:11 +0000
(21:41 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 1 Feb 2008 21:41:11 +0000
(21:41 +0000)
conf_files/pl_hwinit
patch
|
blob
|
history
diff --git
a/conf_files/pl_hwinit
b/conf_files/pl_hwinit
index
b133cfb
..
947a1de
100755
(executable)
--- a/
conf_files/pl_hwinit
+++ b/
conf_files/pl_hwinit
@@
-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