Parent Directory | Revision Log
helper using iselect to select firmware image
1 | #!/bin/sh |
2 | |
3 | tftp=/srv/tftp/ |
4 | tmp=/tmp/tftp |
5 | fw_info=/root/mdap/fw-info.pl |
6 | |
7 | echo "Select firmware image to flash: " > $tmp |
8 | 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` |
11 | |
12 | test -z "$which" && exit |
13 | |
14 | version=`echo $which | cut -d" " -f1` |
15 | path=`echo $which | cut -d" " -f2-` |
16 | |
17 | echo "Using $path [$version]" |
18 | |
19 | cp $tftp/$path $tftp/BANT-R.new && mv $tftp/BANT-R.new $tftp/BANT-R |
20 | |
21 | rm $tmp |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |