Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar.sh 503 2011-03-11 22:12:32Z richard $
|
2 |
# $Id: alcasar.sh 504 2011-03-13 21:57:55Z richard $
|
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 827... |
Line 827... |
827 |
EOF
|
827 |
EOF
|
828 |
# Pour la fonctionnalité de DHCP statique, le fichier alcasar-ethers a été copié précédemment dans /usr/local/etc
|
828 |
# Pour la fonctionnalité de DHCP statique, le fichier alcasar-ethers a été copié précédemment dans /usr/local/etc
|
829 |
# création des fichiers de sites, d'urls et d'adresses MAC de confiance
|
829 |
# création des fichiers de sites, d'urls et d'adresses MAC de confiance
|
830 |
echo -e "uamallowed=\"\"" > $DIR_DEST_ETC/alcasar-uamallowed
|
830 |
echo -e "uamallowed=\"\"" > $DIR_DEST_ETC/alcasar-uamallowed
|
831 |
echo -e "uamdomain=\"\"" > $DIR_DEST_ETC/alcasar-uamdomain
|
831 |
echo -e "uamdomain=\"\"" > $DIR_DEST_ETC/alcasar-uamdomain
|
832 |
echo -e "macallowed=\"\"" > $DIR_DEST_ETC/alcasar-macallowed
|
832 |
touch $DIR_DEST_ETC/alcasar-macallowed
|
833 |
chown root:apache $DIR_DEST_ETC/alcasar-*
|
833 |
chown root:apache $DIR_DEST_ETC/alcasar-*
|
834 |
chmod 660 $DIR_DEST_ETC/alcasar-*
|
834 |
chmod 660 $DIR_DEST_ETC/alcasar-*
|
835 |
echo "- URL de deconnexion du portail : http://alcasar:3990/logoff" >> $FIC_PARAM
|
835 |
echo "- URL de deconnexion du portail : http://alcasar:3990/logoff" >> $FIC_PARAM
|
836 |
# Configuration des fichier WEB d'interception (secret partagé avec coova-chilli et nom d'organisme)
|
836 |
# Configuration des fichier WEB d'interception (secret partagé avec coova-chilli et nom d'organisme)
|
837 |
$SED "s?^\$uamsecret =.*?\$uamsecret = \"$secretuam\";?g" $DIR_WEB/intercept.php $DIR_WEB/intercept.php.old
|
837 |
$SED "s?^\$uamsecret =.*?\$uamsecret = \"$secretuam\";?g" $DIR_WEB/intercept.php $DIR_WEB/intercept.php.old
|