Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1685 → Rev 1686

/alcasar.sh
251,7 → 251,7
# Test EXTIF config files
PUBLIC_IP_MASK=`ip addr show $EXTIF|grep "inet "|cut -d" " -f6`
PUBLIC_IP=`echo $PUBLIC_IP_MASK | cut -d"/" -f1`
PUBLIC_GATEWAY=`ip route list|grep ^default|cut -d" " -f3`
PUBLIC_GATEWAY=`ip route list|grep $EXTIF|grep ^default|cut -d" " -f3`
if [ `echo $PUBLIC_IP|wc -c` -lt 7 ] || [ `echo $PUBLIC_GATEWAY|wc -c` -lt 7 ]
then
if [ $Lang == "fr" ]
278,7 → 278,7
echo -n "."
 
# Test if router is alive (Box FAI)
if [ `ip route list|grep -c ^default` -ne "1" ] ; then
if [ `ip route list|grep $EXTIF|grep -c ^default` -ne "1" ] ; then
if [ $Lang == "fr" ]
then
echo "Échec"