added setup

This commit is contained in:
Surferlul 2022-07-21 21:09:12 +02:00
parent 8fab5f9d40
commit 0462da8b5d
2 changed files with 21 additions and 0 deletions

3
.gitignore vendored
View File

@ -128,3 +128,6 @@ dmypy.json
# Pyre type checker
.pyre/
/guest
/host

18
setup Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
PYTHON="$(whatis -w 'python3.1*' | cut -d " " -f1)"
PIP="$PYTHON -m pip"
$PIP install remote-evdev
if [ -z ${var+x} ]; then
cp vm_guest_example.sh guest
cp vm_host_example.sh host
$PYTHON ./test-evdev.py
else if [[ "$1" == "guest" ]]; then
cp vm_guest_example.sh guest
$PYTHON ./test-evdev.py guest
else if [[ "$1" == "host" ]]; then
cp vm_host_example.sh host
$PYTHON ./test-evdev.py host
else
echo "unknown argument $1"
fi; fi; fi