Subversion Repositories ALCASAR

Rev

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

Rev 1015 Rev 1031
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1015 2013-01-27 22:43:29Z richard $ 
2
#  $Id: alcasar.sh 1031 2013-02-17 11:07:29Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR - Portail captif d'accès à l'Internet -  Copyright (C) [2005] [ALcasar team - Rexy - 3abtux - ...] 
6
# ALCASAR - Portail captif d'accès à l'Internet -  Copyright (C) [2005] [ALcasar team - Rexy - 3abtux - ...] 
7
# Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier au titre des clauses de la Licence Publique Générale GNU, 
7
# Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier au titre des clauses de la Licence Publique Générale GNU, 
Line 139... Line 139...
139
# We test the Ethernet links state
139
# We test the Ethernet links state
140
	for i in $EXTIF $INTIF
140
	for i in $EXTIF $INTIF
141
	do
141
	do
142
		/sbin/ip link set $i up
142
		/sbin/ip link set $i up
143
		sleep 3
143
		sleep 3
144
		CMD=`/usr/sbin/ethtool $i |grep Link | awk '{print $NF}'`
144
		CMD=`/usr/sbin/ethtool $i |egrep 'Link detected'| awk '{print $NF}'`
145
		CMD2=`/sbin/mii-tool $i | grep -i link | awk '{print $NF}'`
145
		CMD2=`/sbin/mii-tool $i | grep link | awk '{print $NF}'`
146
		if [ $CMD != "yes" ] && [ $CMD2 != "ok" ]
146
		if [ $CMD != "yes" ] && [ $CMD2 != "ok" ]
147
			then
147
			then
148
			if [ $Lang == "fr" ]
148
			if [ $Lang == "fr" ]
149
			then 
149
			then 
150
				echo "Échec"
150
				echo "Échec"