/[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 77 by dpavlin, Sun Nov 18 15:27:37 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 24  version=`echo $which | cut -d" " -f1` Line 24  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 -c32-`
26    
27  ln -sf $tftp/$path $tftp/$board || exit  cp $tftp/$path $tftp/$board.new && mv $tftp/$board.new $tftp/$board || exit
28    
29  echo "Using $path for $board [$version]"  echo "Using $path for $board [$version]"
30    

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

  ViewVC Help
Powered by ViewVC 1.1.26