include gummikraken test service in build
authorPaul Hänsch <paul@plutz.net>
Thu, 15 Nov 2018 13:09:04 +0000 (14:09 +0100)
committerPaul Hänsch <paul@plutz.net>
Thu, 15 Nov 2018 13:09:04 +0000 (14:09 +0100)
.gitmodules [new file with mode: 0644]
Makefile
files/etc/rc.local
gummikraken [new submodule]
gummikraken.mk [new file with mode: 0644]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..7e4a91d
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "gummikraken"]
+       path = gummikraken
+       url = https://git.tools.f4.htw-berlin.de/phaensch/gummikraken.git
index e054f23..0de0de2 100644 (file)
--- 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
index 5e8e42c..a58eff7 100755 (executable)
@@ -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 (submodule)
index 0000000..f2e800e
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit f2e800ebee1fbfebbc00dafd484da78afc47eaee
diff --git a/gummikraken.mk b/gummikraken.mk
new file mode 100644 (file)
index 0000000..83957f9
--- /dev/null
@@ -0,0 +1,4 @@
+files/srv/gummikraken/: gummikraken/
+       mkdir -p "$@"
+       cp -av "$</." "$@/."
+       cp gummikraken/inetd.conf files/etc/inetd.conf