Show
Ignore:
Timestamp:
05/06/08 11:03:05 (7 months ago)
Author:
melkor
Message:

-- Change the monstrous pipe construction to more elegant

M scripts/PCBSD.ExtractTar?.sh

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh

    r1826 r1845  
    1212LC_COLLATE="" ; export LC_COLLATE 
    1313 
    14 # Make our pipe file 
    15 mkfifo /mnt/tarpipe 
    16  
    17 (sleep 2; tar xvpf /mnt/tarpipe >&1 2>&1) & 
    18  
    19 lzma -d -c /cdmnt/PCBSD.tar.lzma >/mnt/tarpipe 
     14lzma -d -c /cdmnt/PCBSD.tar.lzma | tar -xpvf - >&1 2>&1 
    2015if [ "$?" != "0" ] 
    2116then 
    2217  exit 1 
    2318fi 
    24  
    25 # Delete the pipefile 
    26 rm /mnt/tarpipe 
    2719 
    2820mkdir /mnt/dev >/dev/null