Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 5
0
def modules_needed(config):
    return (utils.grep('CONFIG_MODULES=y', config) and utils.grep('=m', config))
Esempio n. 6
0
def modules_needed(config):
    return feature_enabled("CONFIG_MODULES", config) and utils.grep("=m", config)
Esempio n. 7
0
def modules_needed(config):
    return (feature_enabled('CONFIG_MODULES', config)
            and utils.grep('=m', config))
Esempio n. 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))