fix a bug and a typo
authorTravis Kemen <thepeople@openwrt.org>
Fri, 16 May 2008 17:50:38 +0000 (17:50 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Fri, 16 May 2008 17:50:38 +0000 (17:50 +0000)
SVN-Revision: 11151

utils/bandwidthd/files/bandwidthd.init

index 7ba8807..770d9c0 100644 (file)
@@ -14,7 +14,7 @@ config_cb() {
 }
 
 start() {
-       [ -d /tmp/bandwidthd ] || mkdir -p /tmp/bandwidthd && cp /www/ledgend.gif /tmp/bandwidthd/
+       [ -d /tmp/bandwidthd ] || mkdir -p /tmp/bandwidthd && cp /www/legend.gif /tmp/bandwidthd/
        [ -e /htdocs ] || ln -s /tmp/bandwidthd /htdocs
        [ -e /www/bandwidthd ] || ln -s /tmp/bandwidthd /www/bandwidthd
        rm -f /tmp/bandwidthd.conf
@@ -49,6 +49,7 @@ ${graph:+ graph $graph}
 ${meta_refresh:+ meta_refresh $meta_refresh}
 EOF
        done
+       cd /
        bandwidthd
 }