From 8ffc3085e3d43f4e973f5205879a7d1421732a03 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 13 Mar 2013 23:35:38 +0545 Subject: 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 --- config/bandwidthd/bandwidthd.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config/bandwidthd') 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 - -- cgit v1.2.3