/[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 38 by dpavlin, Mon May 7 18:34:11 2007 UTC
# Line 7  fw_info=/root/mdap/fw-info.pl Line 7  fw_info=/root/mdap/fw-info.pl
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.38

  ViewVC Help
Powered by ViewVC 1.1.26