From: Travis Kemen Date: Fri, 16 May 2008 17:50:38 +0000 (+0000) Subject: fix a bug and a typo X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=5be1e55c8530381078f682f0fe396f63b52daecc fix a bug and a typo SVN-Revision: 11151 --- diff --git a/utils/bandwidthd/files/bandwidthd.init b/utils/bandwidthd/files/bandwidthd.init index 7ba88076eb..770d9c05f5 100644 --- a/utils/bandwidthd/files/bandwidthd.init +++ b/utils/bandwidthd/files/bandwidthd.init @@ -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 }