From c5addb671309744f3f702cea637adf02d5e5cdf9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 18 Dec 2018 22:07:50 +0100 Subject: [PATCH] include teesock, update test program --- .gitignore | 1 + .gitmodules | 3 +++ Makefile | 5 +++-- files/etc/rc.local | 2 +- gummikraken | 2 +- teesock | 1 + teesock.mk | 8 ++++++++ 7 files changed, 18 insertions(+), 4 deletions(-) create mode 160000 teesock create mode 100644 teesock.mk diff --git a/.gitignore b/.gitignore index 94cfa87..8eb0369 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ raspi.img config.mk files/etc/inetd.conf files/srv/gummikraken/ +files/usr/local/ files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi id_rsa diff --git a/.gitmodules b/.gitmodules index 7e4a91d..4849930 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "gummikraken"] path = gummikraken url = https://git.tools.f4.htw-berlin.de/phaensch/gummikraken.git +[submodule "teesock"] + path = teesock + url = https://git.tools.f4.htw-berlin.de/phaensch/teesock.git diff --git a/Makefile b/Makefile index e97acb4..5616e00 100644 --- a/Makefile +++ b/Makefile @@ -75,11 +75,12 @@ files/root/.ssh/authorized_keys: id_rsa.pub chmod 600 '$@' include gummikraken.mk +include teesock.mk -raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi files/srv/gummikraken/ +raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi files/srv/gummikraken/ files/usr/local/bin/teesock -rmdir "$@.mnt" mkdir "$@.mnt" # fail receipe if dir is nonempty - dd bs=1M count=0 seek=1024 of="$@" # set up sparse file + dd bs=1M count=0 seek=1792 of="$@" # set up sparse file sfdisk "$@"