From bac8014ef4250d7a5617a6b56d1b0095458c4f90 Mon Sep 17 00:00:00 2001 From: Kevin Soviero Date: Tue, 21 Feb 2017 00:47:34 -0600 Subject: [PATCH] Fixed bug causing script to hang The original 'cat /dev/urandom' method caused the script to hang indefinitely on my system. Give that Linux has UUID generation built in at the kernel level, I see no reason to use such a hackish method. --- Linux Script/configure-linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux Script/configure-linux.sh b/Linux Script/configure-linux.sh index da80ebc..e1a025d 100644 --- a/Linux Script/configure-linux.sh +++ b/Linux Script/configure-linux.sh @@ -567,7 +567,7 @@ createRsyslogDir() checkIfLogsMadeToLoggly() { logMsgToConfigSysLog "INFO" "INFO: Sending test message to Loggly." - uuid=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) + uuid=$(cat /proc/sys/kernel/random/uuid) queryParam="syslog.appName%3ALOGGLYVERIFY%20$uuid" logger -t "LOGGLYVERIFY" "LOGGLYVERIFY-Test message for verification with UUID $uuid"