Mercurial > hg > fD-testbed
view scripts/network-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`/network/interfaces" ]; then echo "Missing interfaces file in configuration"; exit 1; fi # Display the changes echo "The following changes are applied to your network configuration" diff -Nur /etc/network/interfaces /home/aaa/conf/`hostname --fqdn`/network/interfaces cp -f /etc/network/interfaces /etc/network/interfaces.bkp cp -f /home/aaa/conf/`hostname --fqdn`/network/interfaces /etc/network/interfaces # Restart the network /etc/init.d/networking restart