[PC-BSD Commits] r1845 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Tue May 6 11:03:05 PDT 2008


Author: melkor
Date: 2008-05-06 11:03:05 -0700 (Tue, 06 May 2008)
New Revision: 1845

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh
Log:

-- Change the monstrous pipe construction to more elegant

M    scripts/PCBSD.ExtractTar.sh


Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh	2008-05-06 17:54:47 UTC (rev 1844)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh	2008-05-06 18:03:05 UTC (rev 1845)
@@ -11,20 +11,12 @@
 LC_CTYPE="" ; export LC_CTYPE
 LC_COLLATE="" ; export LC_COLLATE
 
-# Make our pipe file
-mkfifo /mnt/tarpipe
-
-(sleep 2; tar xvpf /mnt/tarpipe >&1 2>&1) &
-
-lzma -d -c /cdmnt/PCBSD.tar.lzma >/mnt/tarpipe
+lzma -d -c /cdmnt/PCBSD.tar.lzma | tar -xpvf - >&1 2>&1
 if [ "$?" != "0" ]
 then
   exit 1
 fi
 
-# Delete the pipefile
-rm /mnt/tarpipe
-
 mkdir /mnt/dev >/dev/null
 mkdir /mnt/mnt >/dev/null
 



More information about the Commits mailing list