Remove error message if no ppp0.rrd exist yet.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 25 May 2009 16:00:49 +0000 (18:00 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 25 May 2009 16:00:49 +0000 (18:00 +0200)
src/initscripts/init.d/networking/red

index debb0d20c6d33401198ba0963bc964d2c4c4d35d..57393842284773133cda5a7f5a949088b4f3eb00 100644 (file)
@@ -365,7 +365,7 @@ case "${1}" in
                        /etc/rc.d/init.d/connectd start
                        # Add a NaN value to ppp0 rrd to supress spikes at reconnect
                        rrdtool update $RRDLOG/collectd/localhost/interface/if_octets-ppp0.rrd \
-                               $(date +%s)::
+                               $(date +%s):: > /dev/null 2>&1
                        exit 0
                fi
                ;;
@@ -424,7 +424,7 @@ case "${1}" in
                        evaluate_retval
                        # Add a NaN value to ppp0 rrd to supress spikes at reconnect
                        rrdtool update $RRDLOG/collectd/localhost/interface/if_octets-ppp0.rrd \
-                               $(date +%s)::
+                               $(date +%s):: > /dev/null 2>&1
                fi
 
                if [ "$DEVICE" != "${GREEN_DEV}" ] && [ "$DEVICE" != "" ]; then