Subversion Repositories ALCASAR

Rev

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

Rev 974 Rev 975
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 974 2012-08-14 07:10:00Z franck $ 
2
#  $Id: alcasar.sh 975 2012-08-14 10:19:06Z franck $ 
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 80... Line 80...
80
{
80
{
81
	if [ $Lang == "fr" ]
81
	if [ $Lang == "fr" ]
82
	then cat $DIR_INSTALL/gpl-3.0.fr.txt | more
82
	then cat $DIR_INSTALL/gpl-3.0.fr.txt | more
83
	else cat $DIR_INSTALL/gpl-3.0.txt | more
83
	else cat $DIR_INSTALL/gpl-3.0.txt | more
84
	fi
84
	fi
85
	echo "Taper une touche pour continuer !"
85
	echo "Taper sur Entrée pour continuer !"
-
 
86
	echo "Enter to continue."
86
	read a
87
	read a
87
}
88
}
88
 
89
 
89
header_install ()
90
header_install ()
90
{
91
{
Line 1285... Line 1286...
1285
$SED "s?^# chkconfig:.*?# chkconfig: 2345 99 40?g" /etc/init.d/dnsmasq
1286
$SED "s?^# chkconfig:.*?# chkconfig: 2345 99 40?g" /etc/init.d/dnsmasq
1286
# Optionnellement on pré-active les logs DNS des clients
1287
# Optionnellement on pré-active les logs DNS des clients
1287
[ -e /etc/sysconfig/dnsmasq.default ] || cp /etc/sysconfig/dnsmasq /etc/sysconfig/dnsmasq.default
1288
[ -e /etc/sysconfig/dnsmasq.default ] || cp /etc/sysconfig/dnsmasq /etc/sysconfig/dnsmasq.default
1288
$SED "s?log-facility?#OPTIONS=\"-q --log-facility=/var/log/dnsmasq/queries.log\"?g"  /etc/sysconfig/dnsmasq
1289
$SED "s?log-facility?#OPTIONS=\"-q --log-facility=/var/log/dnsmasq/queries.log\"?g"  /etc/sysconfig/dnsmasq
1289
# Optionnellement, exemple de configuration avec un A.D.
1290
# Optionnellement, exemple de configuration avec un A.D.
1290
echo '#OPTIONS="$OPTIONS --server=/your-domain/192.168.182.2"' >> /etc/sysconfig/dnsmasq
1291
echo '#OPTIONS="$OPTIONS --server=/your.domain/192.168.182.2"' >> /etc/sysconfig/dnsmasq
1291
} # End dnsmasq
1292
} # End dnsmasq
1292
 
1293
 
1293
##########################################################
1294
##########################################################
1294
##		Fonction BL (BlackList)			##
1295
##		Fonction BL (BlackList)			##
1295
##########################################################
1296
##########################################################