Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1684 2015-07-30 12:50:48Z richard $
|
2 |
# $Id: alcasar.sh 1685 2015-07-30 13:12:13Z 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 71... |
Line 71... |
71 |
DB_USER="radius" # user name allows to request the users database
|
71 |
DB_USER="radius" # user name allows to request the users database
|
72 |
DB_GAMMU="gammu" # database name used by Gammu-smsd
|
72 |
DB_GAMMU="gammu" # database name used by Gammu-smsd
|
73 |
# ******* Network parameters - paramètres réseau *******
|
73 |
# ******* Network parameters - paramètres réseau *******
|
74 |
HOSTNAME="alcasar" # default hostname
|
74 |
HOSTNAME="alcasar" # default hostname
|
75 |
DOMAIN="localdomain" # default local domain
|
75 |
DOMAIN="localdomain" # default local domain
|
76 |
EXTIF=`/sbin/ip route|grep default|cut -d" " -f5` # EXTIF is connected to the ISP broadband modem/router (In France : Box-FAI)
|
76 |
EXTIF=`/sbin/ip route|grep default|head -n1|cut -d" " -f5` # EXTIF is connected to the ISP broadband modem/router (In France : Box-FAI)
|
77 |
INTIF=`/sbin/ip link|grep '^[[:digit:]]:'|grep -v "lo\|$EXTIF\|tun0"|cut -d" " -f2|tr -d ":"` # INTIF is connected to the consultation network
|
77 |
INTIF=`/sbin/ip link|grep '^[[:digit:]]:'|grep -v "lo\|$EXTIF\|tun0"|head -n1|cut -d" " -f2|tr -d ":"` # INTIF is connected to the consultation network
|
78 |
MTU="1500"
|
78 |
MTU="1500"
|
79 |
DEFAULT_PRIVATE_IP_MASK="192.168.182.1/24" # Default ALCASAR IP address
|
79 |
DEFAULT_PRIVATE_IP_MASK="192.168.182.1/24" # Default ALCASAR IP address
|
80 |
# ****** Paths - chemin des commandes *******
|
80 |
# ****** Paths - chemin des commandes *******
|
81 |
SED="/bin/sed -i"
|
81 |
SED="/bin/sed -i"
|
82 |
# ****************** End of global parameters *********************
|
82 |
# ****************** End of global parameters *********************
|