Mercurial > hg > fD-testbed
view scripts/quagga-install.sh @ 0:9e5a3c884de6
Initial import of the virtual testbed.
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 17 Jun 2010 11:00:32 +0900 |
parents | |
children |
line wrap: on
line source
#!/bin/bash -x # Check configuration file is there if [ ! -d "/home/aaa/conf/`hostname --fqdn`/quagga" ]; then echo "Missing configuration files"; exit 1; fi # Install the package if needed aptitude install quagga # Copy its configuration rm -rf /etc/quagga.bkp mv -f /etc/quagga /etc/quagga.bkp cp -Rf /home/aaa/conf/`hostname --fqdn`/quagga /etc/ # Restart the daemon /etc/init.d/quagga restart