#!/bin/bash

source ./kernel_config_utils.sh

misc_check() {
    is_error=false
    if ! kernel_config_check CONFIG_MODULES; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_NETDEVICES; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_NET_CORE; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_FTRACE; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_FTRACE_SYSCALLS; then
        is_error=true
    fi
    if ! kernel_config_check CONFIG_KPROBES; then
        is_error=true
    fi
    if [ "$is_error" == "true" ]; then
        return 1
    fi

    return 0
}

