Subversion Repositories livecd

Rev

Rev 176 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 176 Rev 177
Line 496... Line 496...
496
    modprobe_usb_sata_modules
496
    modprobe_usb_sata_modules
497
 
497
 
498
    # device defined?
498
    # device defined?
499
    if [ "$CHANGESDEV" != "" ]; then
499
    if [ "$CHANGESDEV" != "" ]; then
500
	mount_device $CHANGESDEV $MEMORY
500
	mount_device $CHANGESDEV $MEMORY
-
 
501
	if [ $? -eq 0 ]; then 
-
 
502
	    echolog "mounted $CHANGESDEV to $MEMORY"
-
 
503
	else
-
 
504
	    echolog "WARNING: device $CHANGESDEV could not be mounted! Continue booting in 10 sec. ..."
-
 
505
	    CHANGESVAL=""
-
 
506
	    sleep 10
-
 
507
	fi
501
	return
508
	return
502
    fi 
509
    fi
503
    
510
    
504
    # if no device is specified, search all devices for folder CHANGESFOLDER
511
    # if no device is specified, search all devices for folder CHANGESFOLDER
505
    list_block_devices | while read DEVICE; do
512
    list_block_devices | while read DEVICE; do
506
	mount_device $DEVICE $MEMORY
513
	mount_device $DEVICE $MEMORY
507
	if [ $? -ne 0 ]; then continue; fi
514
	if [ $? -ne 0 ]; then continue; fi
508
	FOUND_FOLDER=`ls -1d $MEMORY/$CHANGESFOLDER 2>/dev/null`
515
	FOUND_FOLDER=`ls -1d $MEMORY/$CHANGESFOLDER 2>/dev/null`
509
	if [ "$FOUND_FOLDER" = "" ]; then 
516
	if [ "$FOUND_FOLDER" = "" ]; then 
510
	    umount $MEMORY 2>/dev/null
517
	    umount $MEMORY 2>/dev/null
511
	else
518
	else
512
	    echolog "found folder $CHANGESFOLDER on $DEVICE"
519
	    echolog "found folder $CHANGESFOLDER on $DEVICE"
513
	    return
520
	    break
514
	fi
521
	fi
515
    done
522
    done
516
 
523
 
-
 
524
    FOUND_FOLDER=`ls -1d $MEMORY/$CHANGESFOLDER 2>/dev/null`
-
 
525
 
-
 
526
    if [ "$FOUND_FOLDER" = "" ]; then 
517
    echolog "WARNING: changes=$CHANGESVAL not found! Continue booting in 10 seconds..."
527
	echolog "WARNING: changes=$CHANGESVAL not found! Continue booting in 10 sec. ..."
518
    # unset CHANGESVAL
-
 
519
    CHANGESVAL=""
528
	CHANGESVAL=""
520
    sleep 10
529
	sleep 10
-
 
530
    fi
521
 
531
 
522
}
532
}
523
 
533
 
524
 
534
 
525
# ===========================================================
535
# ===========================================================