Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1889 → Rev 1890

/scripts/alcasar-conf.sh/alcasar-conf.sh
24,7 → 24,10
VERSION="/var/www/html/VERSION" # contient la version en cours
EXTIF=`grep ^EXTIF= $CONF_FILE|cut -d"=" -f2` # EXTernal InterFace
INTIF=`grep ^INTIF= $CONF_FILE|cut -d"=" -f2` # INTernal InterFace
MTU=`grep ^PUBLIC_MTU= $CONF_FILE|cut -d"=" -f2` # INTernal InterFace
MTU=`grep ^PUBLIC_MTU= $CONF_FILE|cut -d"=" -f2` # INTernal InterFace
DHCP_mode=`grep ^DHCP= $CONF_FILE|cut -d"=" -f2`
INT_DNS_mode=`grep ^INT_DNS_ACTIVE= $CONF_FILE|cut -d"=" -f2`
LDAP_mode=`grep ^LDAP= $CONF_FILE|cut -d"=" -f2`
HOSTNAME="alcasar"
DB_USER="radius"
radiuspwd=""
57,7 → 60,7
args=$1
if [ $nb_args -eq 0 ]
then
nb_args=1
nb_args=100:26:6C:
args="-h"
fi
case $args in
219,16 → 222,26
DHCP_mode=`grep DHCP= $CONF_FILE|cut -d"=" -f2`
if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
then
if [ $DHCP_mode = "off" ]
if [ $DHCP_mode = "off" ] || [ $DHCP_mode = "Off" ] || [ $DHCP_mode = "OFF" ]
then
$DIR_BIN/alcasar-dhcp.sh --off
else
$DIR_BIN/alcasar-dhcp.sh --on
fi
 
# Implementation of the local DNS
$DIR_BIN/alcasar-dns-local.sh --$INT_DNS_active
if [ $INT_DNS_mode = "on" ] || [ $INT_DNS_mode = "On" ] || [ $INT_DNS_mode = "ON" ]
then
$DIR_BIN/alcasar-dns-local.sh --on
else
$DIR_BIN/alcasar-dns-local.sh --off
fi
# Implementation of the authentification LDAP
# $DIR_BIN/alcasar-ldap.sh --$INT_LDAP_active
# if [ LDAP_mode = "on" ] || [ $LDAP_mode = "On" ] || [ $LDAP_mode = "ON" ]
# then
# $DIR_BIN/alcasar-ldap.sh
# fi
 
# Logout everybody
$DIR_BIN/alcasar-logout.sh all