1 | 1 | simandl | #!/bin/sh |
2 | | | # (c)2006 by Petr Simandl |
3 | | | # http://www.simandl.cz/ |
4 | | | # license: GPL |
5 | | | |
6 | | | # generating basic config files for calstats from *.txt ospf databases |
7 | | | # using gen_ospf_config.pl script |
8 | | | |
9 | | | # version: 0.0.1 |
10 | | | |
11 | | | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin |
12 | | | export PATH |
13 | | | |
14 | | | for file in `/bin/ls *.txt`; do |
15 | | | name=`echo $file | sed 's/.txt//'` |
16 | | | echo $name |
17 | | | ./gen_ospf_config.pl $name | grep ^92 > $name.link |
18 | | | ./gen_ospf_config.pl $name | grep -v ^92 > $name.comp |
19 | | | echo "92;OSPF linky online;" > $name.legend |
20 | | | echo "CZFree.Net cloud $name;800;600;3;" > $name.config |
21 | | | done |
22 | | | |