From 666a971407dbc61083273bf5b4d4463b999e89e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 15 Nov 2018 14:09:04 +0100 Subject: [PATCH] include gummikraken test service in build --- .gitmodules | 3 +++ Makefile | 4 +++- files/etc/rc.local | 2 ++ gummikraken | 1 + gummikraken.mk | 4 ++++ 5 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 gummikraken create mode 100644 gummikraken.mk diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7e4a91d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "gummikraken"] + path = gummikraken + url = https://git.tools.f4.htw-berlin.de/phaensch/gummikraken.git diff --git a/Makefile b/Makefile index e054f23..0de0de2 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,9 @@ files/root/.ssh/authorized_keys: id_rsa.pub chmod 700 files/root/ files/root/.ssh/ chmod 600 '$@' -raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi +include gummikraken.mk + +raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi files/srv/gummikraken/ -rmdir "$@.mnt" mkdir "$@.mnt" # fail receipe if dir is nonempty dd bs=1M count=0 seek=1024 of="$@" # set up sparse file diff --git a/files/etc/rc.local b/files/etc/rc.local index 5e8e42c..a58eff7 100755 --- a/files/etc/rc.local +++ b/files/etc/rc.local @@ -12,3 +12,5 @@ while sleep 5; do bt-device --set "$mac" Trusted 1 done done & + +/srv/gummikraken/gummikraken.sh /srv/gummikraken/gummikraken.data |ncat --send-only -kl 8200 & diff --git a/gummikraken b/gummikraken new file mode 160000 index 0000000..f2e800e --- /dev/null +++ b/gummikraken @@ -0,0 +1 @@ +Subproject commit f2e800ebee1fbfebbc00dafd484da78afc47eaee diff --git a/gummikraken.mk b/gummikraken.mk new file mode 100644 index 0000000..83957f9 --- /dev/null +++ b/gummikraken.mk @@ -0,0 +1,4 @@ +files/srv/gummikraken/: gummikraken/ + mkdir -p "$@" + cp -av "$