예제 #1
0
 def __init__(self, *args, **kwargs):
     if not os.path.isfile(consts.SYSTEMD_SYSTEM_CONF_FILE):
         raise exceptions.NotSupportedPluginException(
             "Required systemd '%s' configuration file not found, disabling plugin."
             % consts.SYSTEMD_SYSTEM_CONF_FILE)
     super(self.__class__, self).__init__(*args, **kwargs)
     self._cmd = commands()
예제 #2
0
 def __init__(self, *args, **kwargs):
     self._control_file = "/sys/devices/platform/eeepc/cpufv"
     if not os.path.isfile(self._control_file):
         self._control_file = "/sys/devices/platform/eeepc-wmi/cpufv"
     if not os.path.isfile(self._control_file):
         raise exceptions.NotSupportedPluginException(
             "Plugin is not supported on your hardware.")
     super(self.__class__, self).__init__(*args, **kwargs)
예제 #3
0
 def __init__(self, *args, **kwargs):
     if not os.path.isfile(consts.GRUB2_TUNED_TEMPLATE_PATH):
         raise exceptions.NotSupportedPluginException(
             "Required GRUB2 template not found, disabling plugin.")
     super(self.__class__, self).__init__(*args, **kwargs)
     self._cmd = commands()