Example #1
0
    def enable(self):
        KernelModuleHandler.enable(self)

        # rebinding does not work, we have to unload/reload
        mods = []
        proc_modules = open(OSLib.inst.proc_modules)
        for line in open(OSLib.inst.proc_modules):
            if 'dvb_usb' in line:
                mods.append(line.split()[0])
        logging.debug('reloading modules: %s' % ' '.join(mods))
        subprocess.call([OSLib.inst.modprobe_path, '-r'] + mods)
        subprocess.call([OSLib.inst.modprobe_path, '-a'] + mods)
    def enable(self):
        KernelModuleHandler.enable(self)

        # rebinding does not work, we have to unload/reload
        mods = []
        proc_modules = open(OSLib.inst.proc_modules)
        for line in open(OSLib.inst.proc_modules):
            if 'dvb_usb' in line:
                mods.append(line.split()[0])
        logging.debug('reloading modules: %s' % ' '.join(mods))
        subprocess.call([OSLib.inst.modprobe_path, '-r'] + mods)
        subprocess.call([OSLib.inst.modprobe_path, '-a'] + mods)
 def enable(self):
     subprocess.call(['/sbin/rmmod', 'b43'])
     subprocess.call(['/sbin/rmmod', 'b43legacy'])
     subprocess.call(['/sbin/rmmod', 'bcm43xx'])
     subprocess.call(['/sbin/rmmod', 'ssb'])
     KernelModuleHandler.enable(self)
Example #4
0
 def enable(self):
     subprocess.call(["/sbin/rmmod", "b43"])
     subprocess.call(["/sbin/rmmod", "b43legacy"])
     subprocess.call(["/sbin/rmmod", "bcm43xx"])
     subprocess.call(["/sbin/rmmod", "ssb"])
     KernelModuleHandler.enable(self)