--- tftp-iselect.sh 2007/04/25 10:53:40 36 +++ tftp-iselect.sh 2007/11/16 14:44:37 43 @@ -2,12 +2,12 @@ tftp=/srv/tftp/ tmp=/tmp/tftp -fw_info=/root/mdap/fw-info.pl +fw_info=./fw-info.pl echo "Select firmware image to flash: " > $tmp echo > $tmp -which=`find $tftp -type f | xargs -i $fw_info {} 2>/dev/null | sed -e "s!$tftp!!" -e 's!^!!' -e 's!^\(.* BANT-R\)!\1!' | iselect -c -n "Select firmware file"` +which=`find $tftp -type f | xargs -i $fw_info {} 2>/dev/null | sort | sed -e "s!$tftp!!" -e 's!^!!' -e 's!^\(.* BANT-R\)!\1!' | iselect -c -n "Select firmware file"` test -z "$which" && exit