]> git.sesse.net Git - nms/blob - make-all-config.sh
Merge with main branch
[nms] / make-all-config.sh
1 #! /bin/sh
2 ./planning/planning
3 cat static-switches.txt >> switches.txt
4 ./config/make-dhcpd.pl > /etc/dhcp3/dhcpd.conf
5 ./config/make-named.pl > /etc/bind/named.conf
6 ./config/make-named-secondary.pl | ssh root@insert 'cat > /etc/bind/named.conf'
7 ./config/make-missing-zones.pl
8 (cd mbd && ./generate-helper-list.pl > ../mbd-ports)
9 ./config/make-port-config.pl
10 scp mbd-ports *-config sesse@f1:/tftpboot/portcfg/
11
12 # regenerate the mbd netlist
13 (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