From 261580507a28b41de5aebe1cb6ba7e2ca32af32e Mon Sep 17 00:00:00 2001 From: josch Date: Sat, 25 Jun 2011 00:07:21 +0200 Subject: [PATCH] make temporary multistrap file unique --- polystrap.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/polystrap.sh b/polystrap.sh index 8f2e64d..d3f3694 100755 --- a/polystrap.sh +++ b/polystrap.sh @@ -93,13 +93,14 @@ echo "--------------------------" [ -e "$ROOTDIR" ] && { echo "root directory still exists"; exit; } # create multistrap.conf -echo -n > /tmp/multistrap.conf +echo -n > /tmp/multistrap.conf.$$ while read line; do - eval echo $line >> /tmp/multistrap.conf + eval echo $line >> /tmp/multistrap.conf.$$ done < $PLATFORM/multistrap.conf # download and extract packages -multistrap -f /tmp/multistrap.conf +multistrap -f /tmp/multistrap.conf.$$ +rm -f /tmp/multistrap.conf.$$ # backup ldconfig and ldd mv $ROOTDIR/sbin/ldconfig $ROOTDIR/sbin/ldconfig.REAL