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 7ba88076eb3c54da104b528bc19028415d9797d7..770d9c05f54ddf9a872ef6779312cf26c154b04c 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
 }