Beispiel #1
0
    def _modprobe(self, modname):
        try:
            from kmodpy import kmod

            try:
                kmod.Kmod().modprobe(modname, quiet=True)
            except kmod.KmodError:
                pass
        except ImportError:
            # Try the ctypes library included with the libkmod itself.
            try:
                import kmod
                kmod.Kmod().modprobe(modname)
            except Exception as e:
                pass
Beispiel #2
0
    def _modprobe(self, modname):
        try:
            from kmodpy import kmod

            try:
                kmod.Kmod().modprobe(modname, quiet=True)
            except kmod.KmodError:
                pass
        except ImportError:
            pass