aboutsummaryrefslogtreecommitdiffstats
path: root/config/bandwidthd
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-03-13 23:35:38 +0545
committerPhil Davis <phil.davis@world.inf.org>2013-03-13 23:35:38 +0545
commit8ffc3085e3d43f4e973f5205879a7d1421732a03 (patch)
treeed20e9f118ec406784772654f6867d262396a9f2 /config/bandwidthd
parent53c131430f1f47eebfce51a0cc6a5fa6fe92aa72 (diff)
downloadpfsense-packages-8ffc3085e3d43f4e973f5205879a7d1421732a03.tar.gz
pfsense-packages-8ffc3085e3d43f4e973f5205879a7d1421732a03.tar.bz2
pfsense-packages-8ffc3085e3d43f4e973f5205879a7d1421732a03.zip
bandwidthd on nanobsd - put logo and legend files in place
legend.gif and logo.gif were missing from the report/graph page. They need to be put in /var/bandwidthd/htdocs
Diffstat (limited to 'config/bandwidthd')
-rw-r--r--config/bandwidthd/bandwidthd.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc
index 8821ac76..47a4b1fd 100644
--- a/config/bandwidthd/bandwidthd.inc
+++ b/config/bandwidthd/bandwidthd.inc
@@ -252,7 +252,12 @@ if [ ! -L "{$bandwidthd_nano_dir}/etc" ] ; then
fi
/bin/ln -s {$bandwidthd_config_dir} {$bandwidthd_nano_dir}/etc
fi
-
+if [ ! -f "{$bandwidthd_htdocs_dir}/legend.gif" ] ; then
+ /bin/cp {$bandwidthd_base_dir}/htdocs/legend.gif {$bandwidthd_htdocs_dir}
+fi
+if [ ! -f "{$bandwidthd_htdocs_dir}/logo.gif" ] ; then
+ /bin/cp {$bandwidthd_base_dir}/htdocs/logo.gif {$bandwidthd_htdocs_dir}
+fi
cd {$bandwidthd_nano_dir}
{$bandwidthd_nano_dir}/bandwidthd
cd -