[SCM] debian-live/autotesting branch, master, updated. 9c5143b50da2155314f60f09166d45a23b762492
Chris Lamb
chris at chris-lamb.co.uk
Fri Aug 8 22:58:05 UTC 2008
The following commit has been merged in the master branch:
commit 18fedf5d2d77eab5e21d21358e9abea63455e68e
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date: Fri Aug 8 23:05:00 2008 +0100
Don't use Bash ${RANDOM} built-in.
Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>
diff --git a/video-qemu-booting-iso.sh b/video-qemu-booting-iso.sh
index 3f10c13..67b32e0 100755
--- a/video-qemu-booting-iso.sh
+++ b/video-qemu-booting-iso.sh
@@ -37,9 +37,13 @@ fi
echo "Lock file /tmp/video-qemu-booting-iso.lock present indicating $0 is running" >/tmp/video-qemu-booting-iso.lock
}
+Random () {
+ tr -c -d '0-9' < /dev/urandom | dd bs=1 count=5 2>/dev/null
+}
+
get_global_variables ()
{
-PASSWD="$RANDOM.$RANDOM.$RANDOM.$RANDOM.$RANDOM"
+PASSWD="$(Random).$(Random).$(Random).$(Random).$(Random)"
HOSTNAME=$(hostname)
OLD_DISPLAY="$DISPLAY"
TODAY=$(date +"%F")
--
debian-live/autotesting
More information about the debian-live-changes
mailing list