Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 784 2011-12-18 14:33:56Z richard $
|
2 |
# $Id: alcasar.sh 785 2011-12-23 17:23:17Z franck $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
7 |
|
7 |
|
Line 1140... |
Line 1140... |
1140 |
|
1140 |
|
1141 |
# On modifie le fichier d'initialisation (lancement et arret de la deuxième instance)
|
1141 |
# On modifie le fichier d'initialisation (lancement et arret de la deuxième instance)
|
1142 |
[ -e /etc/init.d/dnsmasq.default ] || cp /etc/init.d/dnsmasq /etc/init.d/dnsmasq.default
|
1142 |
[ -e /etc/init.d/dnsmasq.default ] || cp /etc/init.d/dnsmasq /etc/init.d/dnsmasq.default
|
1143 |
$SED "/daemon/a \$dnsmasq -C /etc/dnsmasq-blackhole.conf \$OPTIONS" /etc/init.d/dnsmasq
|
1143 |
$SED "/daemon/a \$dnsmasq -C /etc/dnsmasq-blackhole.conf \$OPTIONS" /etc/init.d/dnsmasq
|
1144 |
$SED "/killproc \$DAEMON_NAME/a killproc \$DAEMON_NAME" /etc/init.d/dnsmasq
|
1144 |
$SED "/killproc \$DAEMON_NAME/a killproc \$DAEMON_NAME" /etc/init.d/dnsmasq
|
- |
|
1145 |
# Optionnellement on active les logs DNS des clients --> traiter les uninstall et update
|
- |
|
1146 |
[ -e /etc/sysconfig/dnsmasq.default ] || cp /etc/sysconfig/dnsmasq /etc/sysconfig/dnsmasq.conf.default
|
- |
|
1147 |
$SED "s?^OPTIONS=.*?OPTIONS=\"-q --log-facility=/var/log/dnsmasq/queries.log\"?g" /etc/sysconfig/dnsmasq
|
1145 |
} # End dnsmasq
|
1148 |
} # End dnsmasq
|
1146 |
|
1149 |
|
1147 |
##########################################################
|
1150 |
##########################################################
|
1148 |
## Fonction BL (BlackList) ##
|
1151 |
## Fonction BL (BlackList) ##
|
1149 |
##########################################################
|
1152 |
##########################################################
|