Source

clm-python-sysadmin / sysadmin / linux / clean_module.py

Full commit
#!/usr/bin/env python
import kernel_modules
import optparse
kmodules = kernel_modules.KernelModules()

def main():
    usage="clean_module <module name>"
    op=optparse.OptionParser(usage)
    options, arguments = op.parse_args()
    
    for name in arguments:
        kmodules.clean_module(name)

if __name__=='__main__':
    main()