Subversion Repositories ALCASAR

Rev

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

Rev 2274 Rev 2281
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2274 2017-06-06 06:12:50Z richard $ 
2
#  $Id: alcasar.sh 2281 2017-06-19 18:30:33Z tom.houdayer $ 
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 1514... Line 1514...
1514
vnstat ()
1514
vnstat ()
1515
{
1515
{
1516
	 [ -e /etc/vnstat.conf.default ] || cp /etc/vnstat.conf /etc/vnstat.conf.default
1516
	 [ -e /etc/vnstat.conf.default ] || cp /etc/vnstat.conf /etc/vnstat.conf.default
1517
	 $SED "s?Interface.*?Interface \"$EXTIF\"?g" /etc/vnstat.conf
1517
	 $SED "s?Interface.*?Interface \"$EXTIF\"?g" /etc/vnstat.conf
1518
	 [ -e $DIR_ACC/manager/stats/config.php.default ] || cp $DIR_ACC/manager/stats/config.php $DIR_ACC/manager/stats/config.php.default
1518
	 [ -e $DIR_ACC/manager/stats/config.php.default ] || cp $DIR_ACC/manager/stats/config.php $DIR_ACC/manager/stats/config.php.default
1519
	 $SED "s?\$iface_list =.*?\$iface_list = array('$EXTIF');?g" $DIR_ACC/manager/stats/config.php
1519
	 $SED "s?\$iface_list =.*?\$iface_list = array('$EXTIF');?" $DIR_ACC/manager/stats/config.php
-
 
1520
	 $SED "s?\$iface_title\['.*?\$iface_title\['$EXTIF'\] = \$title;?" $DIR_ACC/manager/stats/config.php
1520
	/usr/bin/vnstat -u -i $EXTIF
1521
	/usr/bin/vnstat -u -i $EXTIF
1521
} # End of vnstat	
1522
} # End of vnstat
-
 
1523
 
1522
##################################################
1524
##################################################
1523
##		Function "dnsmasq"		##
1525
##		Function "dnsmasq"		##
1524
##################################################
1526
##################################################
1525
dnsmasq ()
1527
dnsmasq ()
1526
{
1528
{