use anyhow::Result; use tracing::info; use crate::Router; /// The OpenWrt package name for the TollGate reference implementation. const TOLLGATE_PACKAGE: &str = "tollgate-module-basic-go"; /// Install tollgate-module-basic-go via opkg. /// /// Caller is responsible for running `opkg_update` first. pub fn install_tollgate(router: &Router) -> Result<()> { info!("[{}] Installing {}", router.host, TOLLGATE_PACKAGE); router.opkg_install(TOLLGATE_PACKAGE)?; Ok(()) }