]> git.sesse.net Git - nms/blobdiff - make-all-config.sh
Varius MBD tweaks for TG07.
[nms] / make-all-config.sh
index c186b2874f7c3d6af0396c1be467388e95dc2978..10d3180e12c28a6dc3ab3ad049911bc25313ad36 100755 (executable)
@@ -8,3 +8,6 @@ cat static-switches.txt >> switches.txt
 (cd mbd && ./generate-helper-list.pl > ../mbd-ports)
 ./config/make-port-config.pl
 scp mbd-ports *-config sesse@f1:/tftpboot/portcfg/
+
+# regenerate the mbd netlist
+(echo '# Autogenerated. Do not touch!' ; echo "package Config;"; echo 'our @networks = (' ; cut -d" " -f1-2 switches.txt | perl -e 'while (<>) { chomp; my ($net,$mask) = split / /; print "\t\"$net/$mask\",\n"; }' ; echo ');' ; echo '1;')  > mbd/nets.pl