Subversion Repositories ALCASAR

Rev

Rev 861 | Rev 865 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 861 Rev 862
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 861 2012-04-21 20:18:48Z richard $ 
2
#  $Id: alcasar.sh 862 2012-04-22 19:50:30Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 375... Line 375...
375
	echo "PUBLIC_MTU=1500" >> $CONF_FILE
375
	echo "PUBLIC_MTU=1500" >> $CONF_FILE
376
	echo "GW=$PUBLIC_GATEWAY" >> $CONF_FILE 
376
	echo "GW=$PUBLIC_GATEWAY" >> $CONF_FILE 
377
	echo "DNS1=$DNS1" >> $CONF_FILE
377
	echo "DNS1=$DNS1" >> $CONF_FILE
378
	echo "DNS2=$DNS2" >> $CONF_FILE
378
	echo "DNS2=$DNS2" >> $CONF_FILE
379
	echo "PRIVATE_IP=$PRIVATE_IP_MASK" >> $CONF_FILE
379
	echo "PRIVATE_IP=$PRIVATE_IP_MASK" >> $CONF_FILE
380
	echo "DHCP=on" >> $CONF_FILE
380
	echo "DHCP=half" >> $CONF_FILE
381
	[ -e /etc/sysconfig/network.default ] || cp /etc/sysconfig/network /etc/sysconfig/network.default
381
	[ -e /etc/sysconfig/network.default ] || cp /etc/sysconfig/network /etc/sysconfig/network.default
382
# config network
382
# config network
383
	cat <<EOF > /etc/sysconfig/network
383
	cat <<EOF > /etc/sysconfig/network
384
NETWORKING=yes
384
NETWORKING=yes
385
HOSTNAME="$HOSTNAME"
385
HOSTNAME="$HOSTNAME"