Mercurial > hg > fD-testbed
view scripts/radvd-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 [ ! -e "/home/aaa/conf/`hostname --fqdn`/radvd.conf" ]; then echo "Missing configuration files"; exit 1; fi # Install the package if needed aptitude install radvd # Copy its configuration rm -f /etc/radvd.conf.bkp mv -f /etc/radvd.conf /etc/radvd.conf.bkp cp -f /home/aaa/conf/`hostname --fqdn`/radvd.conf /etc/ # Restart the daemon /etc/init.d/radvd restart