Changeset 1731 in MondoRescue for branches/2.2.5/mindi
- Timestamp:
- Oct 29, 2007, 2:10:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/rootfs/sbin/untar-and-softlink
r866 r1731 19 19 diskno=$1 20 20 untar_path=$2 21 softlink_path=$321 #softlink_path=$3 22 22 tarball=$mountpoint/$diskno.tar.gz 23 23 if [ -e "/tmp/CDROM-LIVES-HERE" ] ; then … … 38 38 counter=0 39 39 for fname in `tar -zxvf $tarball` ; do 40 [ -e "$softlink_path/$fname" ] && continue41 mkdir -p $softlink_path/$fname 2> /dev/null42 if [ ! -d "$untar_path/$fname" ] ; then43 rmdir $softlink_path/$fname 2> /dev/null44 ln -sf $untar_path/$fname $softlink_path/$fname45 sync;sync;sync46 fi47 40 counter=$(($counter+1)) 48 41 [ "$(($counter % 4))" -eq "0" ] && echo -en "\r\t\t\t\t\t\t\t\\"
Note:
See TracChangeset
for help on using the changeset viewer.