aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Cesar Ribas <brunoribas@gmail.com>2018-08-29 16:05:59 +0000
committerBruno Cesar Ribas <brunoribas@gmail.com>2018-08-29 16:05:59 +0000
commit61cbdb57108b542415adf24256a945a3c733291f (patch)
tree7d3816bc8f9d18d4b0b7223fcdef8f23f6a368db
parent60c4662be9a3b4bd73c0b2dbb2d10b0b043307a8 (diff)
parentc21e94055524755c5f773d8046fba0b501d3f6f4 (diff)
downloadboca-61cbdb57108b542415adf24256a945a3c733291f.tar.gz
boca-61cbdb57108b542415adf24256a945a3c733291f.zip
Merge remote-tracking branch 'origin/develc' into devel
-rwxr-xr-xtools/boca-auth-runs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs
index 63bc6b3..488e65b 100755
--- a/tools/boca-auth-runs
+++ b/tools/boca-auth-runs
@@ -5,6 +5,14 @@ if [ "`id -u`" != "0" ]; then
exit 1
fi
+if [ ! -f "/root/.uid.txt" ]; then
+ touch /root/.uid.txt
+ head -c30 /dev/urandom > /root/.uid.tmp
+ dmidecode >>/root/.uid.tmp
+ blkid >>/root/.uid.tmp
+ sha256sum /root/.uid.tmp | cut -d' ' -f1 >/root/.uid.txt
+fi
+
user="$1"
if [ "$user" == "" ]; then
echo "parameter user missing. Usage: $0 <user> [<optional-server-address>]"