diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2017-10-26 10:58:47 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2017-10-27 10:31:35 +0200 |
commit | 1ba87d4097e4da3977f53ffd4fe808a3b0ec2c72 (patch) | |
tree | 81face3e33585fc7fe9757c920fbb728943bf639 /lavalab-gen.sh | |
parent | 508e53fc1f3f06f2edeeb1f2441ddd49a54a15a9 (diff) |
Add sample dhcpd and helper lavalab-gen.sh
Diffstat (limited to 'lavalab-gen.sh')
-rwxr-xr-x | lavalab-gen.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lavalab-gen.sh b/lavalab-gen.sh new file mode 100755 index 0000000..06df881 --- /dev/null +++ b/lavalab-gen.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +rm -rv lava-master/devices/ +rm -rv lava-master/slaves/ +rm -rv lava-slave/conmux/ +rm -rv lava-master/tokens/ +rm -rv lava-master/users/ +rm lavalab*rules + +if [ "$1" = "mrproper" ];then + exit 0 +fi + +./lavalab-gen.py || exit 1 + +rm /etc/udev/rules.d/lavalab*rules +cp lavalab*rules /etc/udev/rules.d/ + +docker-compose build || exit 1 +docker-compose up || exit 1 |