Subversion Repositories ALCASAR

Rev

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

Rev 1672 Rev 1675
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1672 2015-07-25 16:26:38Z richard $ 
2
#  $Id: alcasar.sh 1675 2015-07-27 12:16:58Z richard $ 
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 1489... Line 1489...
1489
{
1489
{
1490
	 [ -e /etc/vnstat.conf.default ] || cp /etc/vnstat.conf /etc/vnstat.conf.default
1490
	 [ -e /etc/vnstat.conf.default ] || cp /etc/vnstat.conf /etc/vnstat.conf.default
1491
	 $SED "s?Interface.*?Interface \"$EXTIF\"?g" /etc/vnstat.conf
1491
	 $SED "s?Interface.*?Interface \"$EXTIF\"?g" /etc/vnstat.conf
1492
	 [ -e $DIR_ACC/manager/stats/config.php.default ] || cp $DIR_ACC/manager/stats/config.php $DIR_ACC/manager/stats/config.php.default
1492
	 [ -e $DIR_ACC/manager/stats/config.php.default ] || cp $DIR_ACC/manager/stats/config.php $DIR_ACC/manager/stats/config.php.default
1493
	 $SED "s?\$iface_list =.*?\$iface_list = array('$EXTIF');?g" $DIR_ACC/manager/stats/config.php
1493
	 $SED "s?\$iface_list =.*?\$iface_list = array('$EXTIF');?g" $DIR_ACC/manager/stats/config.php
1494
	 $SED "s?\$iface_title.*?\$iface_title['$EXTIF'] = 'Internet outbound';?g" $DIR_ACC/manager/stats/config.php
-
 
1495
	/usr/bin/vnstat -u -i $EXTIF
1494
	/usr/bin/vnstat -u -i $EXTIF
1496
} # End of vnstat	
1495
} # End of vnstat	
1497
##################################################
1496
##################################################
1498
##		Function "dnsmasq"		##
1497
##		Function "dnsmasq"		##
1499
##################################################
1498
##################################################