Added auto-stop feature

This commit is contained in:
butomo1989
2018-05-30 00:54:06 +02:00
parent b5f8c28fc1
commit 705be0e3c9
4 changed files with 62 additions and 7 deletions
+1 -6
View File
@@ -1,12 +1,7 @@
#!/bin/bash
if [ -z "$GENY_TEMPLATE" ]; then
GENY_TEMPLATE="/root/tmp/devices.json"
fi
if [ ! -f "$GENY_TEMPLATE" ]; then
echo "File not found! Nothing to do!"
exit 1
GENY_TEMPLATE="/root/tmp/devices.json"
fi
contents=$(cat $GENY_TEMPLATE)