/[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 76 by dpavlin, Sun Nov 18 15:20:16 2007 UTC revision 78 by dpavlin, Sun Nov 18 16:25:26 2007 UTC
# Line 9  $fw_info $tftp/ 2>/dev/null | sort -k 2, Line 9  $fw_info $tftp/ 2>/dev/null | sort -k 2,
9    
10  echo -e "Currently selected version for flash:\n" > $tmp  echo -e "Currently selected version for flash:\n" > $tmp
11    
12  grep "  BANT-" $tmp.all > $tmp.selected  grep "  BANT-.$" $tmp.all > $tmp.selected
13  cat $tmp.selected >> $tmp  cat $tmp.selected >> $tmp
14    
15  echo -e "\nAll versions available:\n" >> $tmp  echo -e "\nAll versions available:\n" >> $tmp
# Line 22  test -z "$which" && echo "No change" && Line 22  test -z "$which" && echo "No change" &&
22    
23  version=`echo $which | cut -d" " -f1`  version=`echo $which | cut -d" " -f1`
24  board=`echo $which | cut -d" " -f2`  board=`echo $which | cut -d" " -f2`
25  path=`echo $which | cut -c32-`  path=`echo "$which" | cut -c34-`
26    
27  ln -sf $tftp/$path $tftp/$board || exit  #echo "$version|$board|$path"
28    
29    cp $tftp/$path $tftp/$board.new && mv $tftp/$board.new $tftp/$board || exit
30    
31  echo "Using $path for $board [$version]"  echo "Using $path for $board [$version]"
32    

Legend:
Removed from v.76  
changed lines
  Added in v.78

  ViewVC Help
Powered by ViewVC 1.1.26