From b52165ef6d917d9400fa7d979a6770b6f1296946 Mon Sep 17 00:00:00 2001 From: Perry Mason Date: Thu, 1 Jul 2010 19:38:58 +0200 Subject: [vnstat2] on vnstat cron update use mount_rw --- config/vnstat2/vnstat2.inc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'config/vnstat2') diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc index a752f23f..8ba712b6 100644 --- a/config/vnstat2/vnstat2.inc +++ b/config/vnstat2/vnstat2.inc @@ -103,7 +103,7 @@ function vnstat_install_config() { $cron_item['month'] = "*"; $cron_item['wday'] = "*"; $cron_item['who'] = "root"; - $cron_item['command'] = "/usr/local/bin/vnstat -u"; + $cron_item['command'] = "/usr/local/pkg/vnstat.sh"; $config['cron']['item'][] = $cron_item; // get system nic's and create a database for them $array_of_real_nic_names = array(); @@ -125,6 +125,26 @@ function vnstat_install_config() { { exec("/usr/local/bin/vnstat -u -i ". $result2); } + +// ************ Write new vnstat.sh ***************** + + $vnstat_bash_file = <<