Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1118 2013-06-20 12:00:56Z franck $
|
2 |
# $Id: alcasar.sh 1130 2013-06-25 11:19:11Z franck $
|
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 996... |
Line 996... |
996 |
#dhcpgatewayport
|
996 |
#dhcpgatewayport
|
997 |
EOF
|
997 |
EOF
|
998 |
# create file for DHCP static ip. Reserve the second IP address for eth1 (the first one is for tun0)
|
998 |
# create file for DHCP static ip. Reserve the second IP address for eth1 (the first one is for tun0)
|
999 |
echo "$PRIVATE_MAC $PRIVATE_SECOND_IP" > $DIR_DEST_ETC/alcasar-ethers
|
999 |
echo "$PRIVATE_MAC $PRIVATE_SECOND_IP" > $DIR_DEST_ETC/alcasar-ethers
|
1000 |
# create files for trusted domains and urls
|
1000 |
# create files for trusted domains and urls
|
1001 |
cp -f $DIR_CONF/alcasar-uam* $DIR_DEST_ETC/.
|
1001 |
cp -f $DIR_CONF/etc/alcasar-uam* $DIR_DEST_ETC/.
|
1002 |
# touch $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain
|
1002 |
# touch $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain
|
1003 |
chown root:apache $DIR_DEST_ETC/alcasar-*
|
1003 |
chown root:apache $DIR_DEST_ETC/alcasar-*
|
1004 |
chmod 660 $DIR_DEST_ETC/alcasar-*
|
1004 |
chmod 660 $DIR_DEST_ETC/alcasar-*
|
1005 |
# Configuration des fichier WEB d'interception (secret partagé avec coova-chilli)
|
1005 |
# Configuration des fichier WEB d'interception (secret partagé avec coova-chilli)
|
1006 |
$SED "s?^\$uamsecret =.*?\$uamsecret = \"$secretuam\";?g" $DIR_WEB/intercept.php
|
1006 |
$SED "s?^\$uamsecret =.*?\$uamsecret = \"$secretuam\";?g" $DIR_WEB/intercept.php
|