X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Finstall%2Bsetup%2Finstall%2Fmountsource.sh;h=a416299feb3add491191093b1eeb929bb99bd33c;hp=f7012b1e05b38320462217ea19fb78416e3392d9;hb=ee78a5efc7c5a5aa81d4d3c24166aa0a5a951228;hpb=f2fdd0c1e9a3ccf539cd477a6111281eadc200a7 diff --git a/src/install+setup/install/mountsource.sh b/src/install+setup/install/mountsource.sh index f7012b1e05..a416299feb 100644 --- a/src/install+setup/install/mountsource.sh +++ b/src/install+setup/install/mountsource.sh @@ -3,22 +3,21 @@ echo "Scanning source media" # scan CDROM devices - -for DEVICE in $(kudzu -qps -t 30 -c CDROM | grep device: | cut -d ' ' -f 2 | sort | uniq); do +for DEVICE in $(kudzu -qps -t 30 -c CDROM | grep device: | cut -d ' ' -f 2 | sort | uniq); do mount /dev/${DEVICE} /cdrom 2> /dev/null - if [ -e /cdrom/boot ]; then - echo -n ${DEVICE} > /tmp/source_device - exit 0 + if [ -e /cdrom/ipfire-*.tbz2 ]; then + echo -n ${DEVICE} > /tmp/source_device + exit 0 fi umount /cdrom 2> /dev/null done # scan HD device (usb sticks, etc.) -for DEVICE in $(kudzu -qps -t 30 -c HD | grep device: | cut -d ' ' -f 2 | sort | uniq); do +for DEVICE in $(kudzu -qps -t 30 -c HD | grep device: | cut -d ' ' -f 2 | sort | uniq); do mount /dev/${DEVICE}1 /cdrom 2> /dev/null - if [ -e /cdrom/boot ]; then - echo -n ${DEVICE}1 > /tmp/source_device - exit 1 + if [ -e /cdrom/ipfire-*.tbz2 ]; then + echo -n ${DEVICE}1 > /tmp/source_device + exit 1 fi umount /cdrom 2> /dev/null done