mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
Add support for Luckfox PicoKVM
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
# Check if an IP address was provided as an argument
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <JetKVM IP Address>"
|
||||
echo "Usage: $0 <KVM IP Address>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -10,11 +10,11 @@ ip_address="$1"
|
||||
|
||||
# Print header
|
||||
echo "┌──────────────────────────────────────┐"
|
||||
echo "│ JetKVM Development Setup │"
|
||||
echo "│ KVM Development Setup │"
|
||||
echo "└──────────────────────────────────────┘"
|
||||
|
||||
# Set the environment variable and run Vite
|
||||
echo "Starting development server with JetKVM device at: $ip_address"
|
||||
echo "Starting development server with KVM device at: $ip_address"
|
||||
|
||||
# Check if pwd is the current directory of the script
|
||||
if [ "$(pwd)" != "$(dirname "$0")" ]; then
|
||||
@@ -24,6 +24,6 @@ fi
|
||||
|
||||
sleep 1
|
||||
|
||||
JETKVM_PROXY_URL="ws://$ip_address" npx vite dev --mode=device
|
||||
KVM_PROXY_URL="ws://$ip_address" npx vite dev --mode=device
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user