slitaz-tools rev 77

correct clean_target bug. hme backup
author Eric joseph-Alexandre <erjo@slitaz.org>
date Mon Mar 03 16:53:36 2008 +0100 (2008-03-03)
parents d3bda4c7b851
children 513a0fa159c8
files installer/slitaz-installer
line diff
     1.1 --- a/installer/slitaz-installer	Fri Feb 29 23:09:07 2008 +0100
     1.2 +++ b/installer/slitaz-installer	Mon Mar 03 16:53:36 2008 +0100
     1.3 @@ -280,15 +280,16 @@
     1.4  		# Keep /home in case of reinstall.
     1.5  		for dir in $TARGET_ROOT/*
     1.6  		do
     1.7 -			case "$dir" in
     1.8 +			dirname=`basename $dir`
     1.9 +			case "$dirname" in
    1.10  				home)
    1.11 -					mv home home.bak
    1.12 +					mv $TARGET_ROOT/home $TARGET_ROOT/home.bak
    1.13  					echo "keeping /home found on: $TARGET_DEV" >>$LOG ;;
    1.14  				lost+found)
    1.15  					break ;;
    1.16  				*)
    1.17  					echo "Deleting: $dir" >> $LOG
    1.18 -					rm -rf $dir 2>$LOG ;;
    1.19 +					rm -rf $dir 2>>$LOG ;;
    1.20  			esac
    1.21  		done
    1.22  		if [ -d $TARGET_ROOT/mklost+found ]; then