[Wine-patches] [eter-1.0.12] [eterhack] [eterwine] Initialize .windows-serial when creating wineprefix (eterbug #6942).

Alexander Morozov amorozov на etersoft.ru
Вт Мар 15 17:44:59 MSK 2011


----------- следующая часть -----------
From 6907370fc6c5a374b1cfe94b3d7a04bd8d3ac816 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Tue, 15 Mar 2011 17:21:04 +0300
Subject: [eter-1.0.12 2/2] Initialize .windows-serial when creating wineprefix (eterbug #6942).

---
 etersoft/scripts/wine.in |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/etersoft/scripts/wine.in b/etersoft/scripts/wine.in
index a716a50..3637869 100644
--- a/etersoft/scripts/wine.in
+++ b/etersoft/scripts/wine.in
@@ -328,6 +328,12 @@ find_type()
 		cd - >/dev/null
 	fi
 
+	if [ ! "$WINEMODE" = "--attach" ] && [ ! -e $CROOT/.windows-serial ] ; then
+		# $RANDOM does not work in dash (Ubuntu default shell) so /dev/urandom is used
+		# echo is used to remove space at the beginning of od output
+		echo $(od -t x4 -A n -N 4 /dev/urandom) > $CROOT/.windows-serial
+	fi
+
 	# jump to C: before run internal wine programs
 	cd "$CROOT/$WINTEMP"
 	step_progress
-- 
1.7.4.1



Подробная информация о списке рассылки Wine-patches