Example #1
0
    def pgset(self, command):
        file = open(self.pgdev, 'w')
        file.write(command + '\n')
        file.close

        if not utils.grep('Result: OK', self.pgdev):
            if not utils.grep('Result: NA', self.pgdev):
                utils.system('cat ' + self.pgdev)
Example #2
0
    def pgset(self, command):
        file = open(self.pgdev, 'w')
        file.write(command + '\n')
        file.close

        if not utils.grep('Result: OK', self.pgdev):
            if not utils.grep('Result: NA', self.pgdev):
                utils.system('cat ' + self.pgdev)
Example #3
0
def feature_enabled(feature, config):
    """
    Verify whether a given kernel option is enabled.

    @param feature: Kernel feature, such as "CONFIG_DEFAULT_UIMAGE".
    @param config: Config file path, such as /tmp/config.
    """
    return utils.grep("^%s=y" % feature, config)
Example #4
0
def feature_enabled(feature, config):
    """
    Verify whether a given kernel option is enabled.

    @param feature: Kernel feature, such as "CONFIG_DEFAULT_UIMAGE".
    @param config: Config file path, such as /tmp/config.
    """
    return utils.grep('^%s=y' % feature, config)
Example #5
0
def modules_needed(config):
    return (utils.grep('CONFIG_MODULES=y', config) and utils.grep('=m', config))
Example #6
0
def modules_needed(config):
    return feature_enabled("CONFIG_MODULES", config) and utils.grep("=m", config)
Example #7
0
def modules_needed(config):
    return (feature_enabled('CONFIG_MODULES', config)
            and utils.grep('=m', config))
Example #8
0
def modules_needed(config):
    return (utils.grep('CONFIG_MODULES=y', config)
            and utils.grep('=m', config))
def modules_needed(config):
    return (feature_enabled('CONFIG_MODULES', config) and
            utils.grep('=m', config))