Subversion Repositories livecd

Rev

Rev 175 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 175 Rev 176
Line 479... Line 479...
479
}
479
}
480
 
480
 
481
 
481
 
482
# find partition and/or folder that stores the changes
482
# find partition and/or folder that stores the changes
483
# return false, if changes not set or changes folder/partition not found
483
# return false, if changes not set or changes folder/partition not found
-
 
484
# Urs Beyerle
-
 
485
#
484
find_changes()
486
find_changes()
485
{
487
{
486
    echolog "looking for changes on $CHANGESVAL"
488
    echolog "looking for changes in $CHANGESVAL"
487
 
489
 
488
    CHANGESDEV="`echo "$CHANGESVAL" | egrep -o "^/dev/[^/]+"`"
490
    CHANGESDEV="`echo "$CHANGESVAL" | egrep -o "^/dev/[^/]+"`"
489
    CHANGESFOLDER="`echo "$CHANGESVAL" | sed -r 's:^/dev/[^/]+(.*):\1:'`"
491
    CHANGESFOLDER="`echo "$CHANGESVAL" | sed -r 's:^/dev/[^/]+(.*):\1:'`"
490
    # (re-)define CHANGES if CHANGESFOLDER is set
492
    # (re-)define CHANGES if CHANGESFOLDER is set
491
    if [ "$CHANGESFOLDER" != "" ]; then CHANGES=$MEMORY/$CHANGESFOLDER; fi
493
    if [ "$CHANGESFOLDER" != "" ]; then CHANGES=$MEMORY/$CHANGESFOLDER; fi
Line 510... Line 512...
510
	    echolog "found folder $CHANGESFOLDER on $DEVICE"
512
	    echolog "found folder $CHANGESFOLDER on $DEVICE"
511
	    return
513
	    return
512
	fi
514
	fi
513
    done
515
    done
514
 
516
 
515
    echolog "WARNING: $CHANGESVAL not found! Continue booting in 10 seconds..."
517
    echolog "WARNING: changes=$CHANGESVAL not found! Continue booting in 10 seconds..."
516
    # unset CHANGESVAL
518
    # unset CHANGESVAL
517
    CHANGESVAL=""
519
    CHANGESVAL=""
518
    sleep 10
520
    sleep 10
519
 
521
 
520
}
522
}