diff options
-rw-r--r-- | packages/bandwidthd/bandwidthd.inc | 5 | ||||
-rw-r--r-- | packages/bandwidthd/bandwidthd.xml | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/packages/bandwidthd/bandwidthd.inc b/packages/bandwidthd/bandwidthd.inc index 26758622..208edabb 100644 --- a/packages/bandwidthd/bandwidthd.inc +++ b/packages/bandwidthd/bandwidthd.inc @@ -32,6 +32,7 @@ function bandwidthd_install_deinstall() { exec("cd /var/db/pkg/ && pkg_delete `ls | grep bandwidthd`"); exec("rm /usr/local/etc/rc.d/bandwidthd*"); exec("rm -rf /usr/local/bandwidthd*"); + exec("rm /usr/local/www/bandwidthd"); } function bandwidthd_install_config() { @@ -158,6 +159,10 @@ EOF; ) ); + exec("ln -s /usr/local/www/bandwidthd /usr/local/bandwidthd/htdocs"); + } + + ?>
\ No newline at end of file diff --git a/packages/bandwidthd/bandwidthd.xml b/packages/bandwidthd/bandwidthd.xml index 76be91e4..80873cc5 100644 --- a/packages/bandwidthd/bandwidthd.xml +++ b/packages/bandwidthd/bandwidthd.xml @@ -8,7 +8,7 @@ <name>BandwidthD</name> <tooltiptext></tooltiptext> <section>Services</section> - <url>http://$myurl:3000</url> + <url>/bandwidthd</url> </menu> <tabs> <tab> @@ -16,6 +16,10 @@ <url>/pkg_edit.php?xml=bandwidthd.xml&id=0</url> <active/> </tab> + <tab> + <text>Access BandwidthD</text> + <url>/bandwidthd</url> + </tab> </tabs> <service> <name>bandwidthd</name> |