prereq script

This commit is contained in:
John Smith
2023-03-05 15:42:31 +00:00
parent f47e977657
commit 0daffab4a7
5 changed files with 36 additions and 27 deletions

View File

@@ -1,7 +0,0 @@
#!/bin/bash
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
killall lldb-server 2> /dev/null
echo Running lldb-server
pushd /tmp > /dev/null
sudo -u veilid lldb-server platform --server --listen 127.0.0.1:6969 --gdbserver-port 6970
popd > /dev/null

View File

@@ -1,12 +0,0 @@
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SSHHOST=$1
if [[ "$SSHHOST" == "" ]]; then
SSHHOST="root@bootstrap-1.dev.veilid.net"
fi
echo Copying debug script
scp -q $SCRIPTDIR/debug.sh $SSHHOST:/tmp/debug.sh
echo Connecting to debug server
ssh -t $SSHHOST -L 6969:127.0.0.1:6969 -L 6970:127.0.0.1:6970 'bash /tmp/debug.sh'