SmartFox: launcher, Siri Remote driver, Debian image and installer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
12
tools/vm/vmssh.sh
Normal file
12
tools/vm/vmssh.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# Runs a command in the SmartFox QEMU VM (dev image, root/smartfox).
|
||||
# usage: vmssh.sh [--wait] 'command'
|
||||
OPTS=(-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -p 2222)
|
||||
if [ "$1" = "--wait" ]; then
|
||||
shift
|
||||
for _ in $(seq 1 60); do
|
||||
sshpass -p smartfox ssh "${OPTS[@]}" -o ConnectTimeout=3 root@localhost true 2>/dev/null && break
|
||||
sleep 2
|
||||
done
|
||||
fi
|
||||
exec sshpass -p smartfox ssh "${OPTS[@]}" root@localhost "$@"
|
||||
Reference in New Issue
Block a user