Ticket #7794: bandwidthd.patch

File bandwidthd.patch, 729 bytes (added by AsciiWolf, 7 years ago)

init script patch (logo.gif needs to be copied to /tmp/bandwidthd/ on startup)

Line 
1*** bandwidthd_orig     2010-07-11 12:24:20.000000000 +0200
2--- bandwidthd  2010-08-19 19:13:42.000000000 +0200
3***************
4*** 52,58 ****
5  start() {
6        local subnet conffile
7 
8!       [ -d /tmp/bandwidthd ] || mkdir -p /tmp/bandwidthd && cp /www/legend.gif /tmp/bandwidthd/
9        [ -e /htdocs ] || ln -s /tmp/bandwidthd /htdocs
10        [ -e /www/bandwidthd ] || ln -s /tmp/bandwidthd /www/bandwidthd
11        rm -f /tmp/bandwidthd.conf
12--- 52,58 ----
13  start() {
14        local subnet conffile
15 
16!       [ -d /tmp/bandwidthd ] || mkdir -p /tmp/bandwidthd && cp /www/legend.gif /www/logo.gif /tmp/bandwidthd/
17        [ -e /htdocs ] || ln -s /tmp/bandwidthd /htdocs
18        [ -e /www/bandwidthd ] || ln -s /tmp/bandwidthd /www/bandwidthd
19        rm -f /tmp/bandwidthd.conf