summaryrefslogtreecommitdiffstats
path: root/lava-slave/scripts
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-10-16 11:20:59 +0200
committerCorentin LABBE <clabbe@baylibre.com>2018-10-17 16:27:02 +0200
commit135f1dca856775d0d365c0c1045a7add8626da01 (patch)
treeacb42f5c455385dcac78d82e7ece15da57622405 /lava-slave/scripts
parent033ceaa64ad89cdedb45f3fc3b6269063402b1bd (diff)
Permit to set a group on boards
This patch permit to add a group on boards
Diffstat (limited to 'lava-slave/scripts')
-rwxr-xr-xlava-slave/scripts/setup.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lava-slave/scripts/setup.sh b/lava-slave/scripts/setup.sh
index ef20790..9fbd796 100755
--- a/lava-slave/scripts/setup.sh
+++ b/lava-slave/scripts/setup.sh
@@ -88,6 +88,10 @@ do
echo "DEBUG: give $devicename to $DEVICE_USER"
DEVICE_OPTS="$DEVICE_OPTS --user $DEVICE_USER"
fi
+ if [ ! -z "$DEVICE_GROUP" ];then
+ echo "DEBUG: give $devicename to group $DEVICE_GROUP"
+ DEVICE_OPTS="$DEVICE_OPTS --group $DEVICE_GROUP"
+ fi
fi
echo "Add device $devicename on $worker"
grep -q "$devicename[[:space:]]" /tmp/devices.list