This commit is contained in:
Brad Stein 2025-06-15 11:15:52 -05:00
parent 1c3e3cd31c
commit 70df984fba
5 changed files with 9 additions and 5 deletions

View File

@ -2,8 +2,8 @@
use anyhow::Result;
use std::time::Duration;
use tokio::{sync::mpsc, task::JoinHandle};
use tokio_stream::wrappers::ReceiverStream;
use tokio::{sync::mpsc, sync::broadcast, task::JoinHandle};
use tokio_stream::wrappers::{ReceiverStream, BroadcastStream};
use tonic::Request;
use tracing::{info, warn, error};
use navka_common::navka::{relay_client::RelayClient, HidReport};

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# install-client.sh - install and setup all client related apps and environments
set -euo pipefail
ORIG_USER=${SUDO_USER:-$(id -un)}

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# install-server.sh - install and setup all server related apps and environments
set -euo pipefail
ORIG_USER=${SUDO_USER:-$(id -un)}

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
# Proven Pi-5 configfs gadget: HID keyboard+mouse + stereo UAC2
# Still need Web Cam Support
# navka-core.sh - background stealth daemon to present gadget as usb hub of genuine devices
# Proven Pi-5 configfs gadget: HID keyboard+mouse
# Still need Web Cam Support + stereo UAC2
# navka-core one-shot gadget bring-up for Pi-5 / Arch-ARM
set -euo pipefail
@ -23,7 +24,7 @@ if [[ -d $G ]]; then
sleep 0.2
find "$G/configs" -type l -delete 2>/dev/null || true
rm -rf "$G/functions"/* 2>/dev/null || true
rmdir "$G" || true
sudo rmdir "$G" || true
fi
# 5) Create gadget (boot-keyboard + UAC2 mic/spkr, 500 mA max)

View File

@ -1,4 +1,5 @@
//! navka-server — receive HidReport and write to /dev/hidg0
// main.rs
#![forbid(unsafe_code)]
use std::{pin::Pin, sync::Arc};