diff options
Diffstat (limited to '')
-rw-r--r-- | iso2usb.sh | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -23,6 +23,9 @@ # Be careful: set -e +# Limit the search path: +export PATH="/usr/sbin:/sbin:/usr/bin:/bin" + # Set to '1' if you want to ignore all warnings: FORCE=0 @@ -44,9 +47,6 @@ UNATTENDED=0 # By default do not show file operations in detail: VERBOSE=0 -# Limit the search path: -export PATH="/usr/sbin:/sbin:/usr/bin:/bin" - # Variables to store content from an initrd we are going to refresh: OLDPERSISTENCE="" OLDWAIT="" @@ -507,9 +507,11 @@ EOT fi # Continue with the common text message: cat <<EOT +# --------------------------------------------------------------------------- # Vendor : $(cat /sys/block/$(basename $TARGET)/device/vendor) # Model : $(cat /sys/block/$(basename $TARGET)/device/model) # Size : $(( $(cat /sys/block/$(basename $TARGET)/size) / 2048)) MB +# --------------------------------------------------------------------------- # # FDISK OUTPUT: EOT @@ -646,7 +648,7 @@ fi if [ $REFRESH -eq 1 ]; then # Clean out old Live system data: echo "--- Cleaning out old Live system data." - LIVEMAIN="$(echo $(find ${ISOMNT} -name "0099*") |rev |cut -d/ -f3 |rev)" + LIVEMAIN="$(echo $(find ${ISOMNT} -name "0099*" |tail -1) |rev |cut -d/ -f3 |rev)" rsync -rlptD --delete \ ${ISOMNT}/${LIVEMAIN}/system/ ${USBMNT}/${LIVEMAIN}/system/ if [ -f ${USBMNT}/boot/extlinux/ldlinux.sys ]; then |