/[mdap]/tftp-iselect.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /tftp-iselect.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 36 by dpavlin, Wed Apr 25 10:53:40 2007 UTC revision 43 by dpavlin, Fri Nov 16 14:44:37 2007 UTC
# Line 2  Line 2 
2    
3  tftp=/srv/tftp/  tftp=/srv/tftp/
4  tmp=/tmp/tftp  tmp=/tmp/tftp
5  fw_info=/root/mdap/fw-info.pl  fw_info=./fw-info.pl
6    
7  echo "Select firmware image to flash: " > $tmp  echo "Select firmware image to flash: " > $tmp
8  echo > $tmp  echo > $tmp
9    
10  which=`find $tftp -type f | xargs -i $fw_info {} 2>/dev/null | sed -e "s!$tftp!!" -e 's!^!<s>!' -e 's!^<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!^!<s>!' -e 's!^<s>\(.* BANT-R\)!\1!' | iselect -c -n "Select firmware file"`
11    
12  test -z "$which" && exit  test -z "$which" && exit
13    

Legend:
Removed from v.36  
changed lines
  Added in v.43

  ViewVC Help
Powered by ViewVC 1.1.26