From: Heiko Z. <smi...@us...> - 2014-10-12 14:58:52
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24853/scripts/scripts Modified Files: install-on-usb Log Message: - install-on-usb now allows it to be run (with warning) to the installation device if you are running from ram. (Dominic Raferd) Index: install-on-usb =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/install-on-usb,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- install-on-usb 29 Dec 2011 00:57:14 -0000 1.39 +++ install-on-usb 12 Oct 2014 14:58:50 -0000 1.40 @@ -323,7 +323,14 @@ fi read -p "Enter DEVICE name of disk device for installation (e.g. /dev/sda) -> " DEVICE [ "$DEVICE" = "" ] && { echo "No installation disk device specified"; return 1; } - [ "$DEVICE" = "$DL_DEVICE" ] && { echo "You cannot install new DL on current installation device $DL_DEVICE"; return 1; } + if [ "$DEVICE" = "$DL_DEVICE" ]; then + if [ -f "/shm/dl_run_from_ram" ]; then + echo -n "Warning: install on current installation device $DL_DEVICE, sure?" + ask_yes_no || return 1 + else + echo "You cannot install new DL on current installation device $DL_DEVICE"; return 1 + fi + fi if [ "$FDISK" = "cfdisk" ]; then $FDISK -Ps $DEVICE 2>/dev/null if [ "$?" -gt 0 ]; then |