]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/networking/red
Remove error message if no ppp0.rrd exist yet.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / networking / red
index aa5108a77adc2ead80603099b29a35ee2689fec7..57393842284773133cda5a7f5a949088b4f3eb00 100644 (file)
@@ -364,8 +364,8 @@ case "${1}" in
                        /usr/bin/vnstat -u -i ppp0 -r --enable --force > /dev/null 2>&1
                        /etc/rc.d/init.d/connectd start
                        # Add a NaN value to ppp0 rrd to supress spikes at reconnect
-                       rrdtool $RRDLOG/collectd/localhost/interface/if_octets-ppp0.rrf \
-                               $(date +%s)::
+                       rrdtool update $RRDLOG/collectd/localhost/interface/if_octets-ppp0.rrd \
+                               $(date +%s):: > /dev/null 2>&1
                        exit 0
                fi
                ;;
@@ -423,8 +423,8 @@ case "${1}" in
                        killall -w -s TERM /usr/sbin/pppd 2>/dev/null
                        evaluate_retval
                        # Add a NaN value to ppp0 rrd to supress spikes at reconnect
-                       rrdtool $RRDLOG/collectd/localhost/interface/if_octets-ppp0.rrf \
-                               $(date +%s)::
+                       rrdtool update $RRDLOG/collectd/localhost/interface/if_octets-ppp0.rrd \
+                               $(date +%s):: > /dev/null 2>&1
                fi
 
                if [ "$DEVICE" != "${GREEN_DEV}" ] && [ "$DEVICE" != "" ]; then