Subversion Repositories ALCASAR

Rev

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

Rev 1474 Rev 1478
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1474 2014-11-03 22:55:09Z richard $ 
2
#  $Id: alcasar.sh 1478 2014-11-04 22:28:12Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 73... Line 73...
73
HOSTNAME="alcasar"				# default hostname
73
HOSTNAME="alcasar"				# default hostname
74
DOMAIN="localdomain"				# default local domain
74
DOMAIN="localdomain"				# default local domain
75
EXTIF=`/sbin/ip route|grep default|cut -d" " -f5`						# EXTIF is connected to the ISP broadband modem/router (In France : Box-FAI)
75
EXTIF=`/sbin/ip route|grep default|cut -d" " -f5`						# EXTIF is connected to the ISP broadband modem/router (In France : Box-FAI)
76
INTIF=`/sbin/ip	link|grep '^[[:digit:]]:'|grep -v "lo\|$EXTIF"|cut -d" " -f2|tr -d ":"`		# INTIF is connected to the consultation network
76
INTIF=`/sbin/ip	link|grep '^[[:digit:]]:'|grep -v "lo\|$EXTIF"|cut -d" " -f2|tr -d ":"`		# INTIF is connected to the consultation network
77
MTU="1500"
77
MTU="1500"
78
ETHTOOL_OPTS='"autoneg off speed 100 duplex full"'
-
 
79
DEFAULT_PRIVATE_IP_MASK="192.168.182.1/24"	# Default ALCASAR IP address
78
DEFAULT_PRIVATE_IP_MASK="192.168.182.1/24"	# Default ALCASAR IP address
80
# ****** Paths - chemin des commandes *******
79
# ****** Paths - chemin des commandes *******
81
SED="/bin/sed -i"
80
SED="/bin/sed -i"
82
# ****************** End of global parameters *********************
81
# ****************** End of global parameters *********************
83
 
82
 
Line 508... Line 507...
508
MII_NOT_SUPPORTED=yes
507
MII_NOT_SUPPORTED=yes
509
IPV6INIT=no
508
IPV6INIT=no
510
IPV6TO4INIT=no
509
IPV6TO4INIT=no
511
ACCOUNTING=no
510
ACCOUNTING=no
512
USERCTL=no
511
USERCTL=no
513
ETHTOOL_OPTS=$ETHTOOL_OPTS
-
 
514
EOF
512
EOF
515
# Config of INTIF in bypass mode (see "alcasar-bypass.sh")
513
# Config of INTIF in bypass mode (see "alcasar-bypass.sh")
516
	cat <<EOF > /etc/sysconfig/network-scripts/default-ifcfg-$INTIF
514
	cat <<EOF > /etc/sysconfig/network-scripts/default-ifcfg-$INTIF
517
DEVICE=$INTIF
515
DEVICE=$INTIF
518
BOOTPROTO=static
516
BOOTPROTO=static