Subversion Repositories ALCASAR

Rev

Rev 820 | Rev 832 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 820 Rev 830
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 820 2012-02-09 22:51:08Z richard $ 
2
#  $Id: alcasar.sh 830 2012-03-03 17:26:04Z 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 92... Line 92...
92
		if [ $Lang == "fr" ]
92
		if [ $Lang == "fr" ]
93
		then 
93
		then 
94
			echo "Échec"
94
			echo "Échec"
95
			echo "La carte réseau connectée à Internet ($EXTIF) n'est pas correctement configurée."
95
			echo "La carte réseau connectée à Internet ($EXTIF) n'est pas correctement configurée."
96
			echo "Renseignez les champs suivants dans le fichier '/etc/sysconfig/network-scripts/ifcfg-$EXTIF' :"
96
			echo "Renseignez les champs suivants dans le fichier '/etc/sysconfig/network-scripts/ifcfg-$EXTIF' :"
-
 
97
			echo "Appliquez les changements : 'service network restart'"
97
		else
98
		else
98
			echo "Failed"
99
			echo "Failed"
99
			echo "The Internet connected network card ($EXTIF) isn't well configured."
100
			echo "The Internet connected network card ($EXTIF) isn't well configured."
100
			echo "The folowing parametres must be set in the file '/etc/sysconfig/network-scripts/ifcfg-$EXTIF' :"
101
			echo "The folowing parametres must be set in the file '/etc/sysconfig/network-scripts/ifcfg-$EXTIF' :"
-
 
102
			echo "Apply the new configuration 'service network restart'"
101
		fi
103
		fi
-
 
104
		echo "DEVICE=$EXTIF"
102
		echo "IPADDR="
105
		echo "IPADDR="
103
		echo "NETMASK="
106
		echo "NETMASK="
104
		echo "GATEWAY="
107
		echo "GATEWAY="
105
		echo "DNS1="
108
		echo "DNS1="
106
		echo "DNS2="
109
		echo "DNS2="
-
 
110
		echo "ONBOOT=yes"
107
		exit 0
111
		exit 0
108
	fi
112
	fi
109
	echo -n "."
113
	echo -n "."
110
# We test the Ethernet links state
114
# We test the Ethernet links state
111
	for i in $EXTIF $INTIF
115
	for i in $EXTIF $INTIF