#!/bin/bash

source ./kernel_config_utils.sh

l2tp_check() {
    local is_error

    is_error="false"
    if ! kernel_config_check CONFIG_L2TP l2tp_core; then
        is_error="true"
    fi
    if ! kernel_config_check CONFIG_L2TP_V3; then
        is_error="true"
    fi
    if ! kernel_config_check CONFIG_PPPOL2TP pppox; then
        is_error="true"
    fi
    if [ "$is_error" == "true" ]; then
        return 1
    fi

    return 0
}

