#! /usr/bin/env bash

function bluer_sbc_rpi() {
    local task=$1

    local function_name=bluer_sbc_rpi_$task
    if [[ $(type -t $function_name) == "function" ]]; then
        $function_name "${@:2}"
        return
    fi

    bluer_ai_log_error "@sbc rpi: $task: command not found."
    return 1
}

bluer_ai_source_caller_suffix_path /rpi
