# RED INTERFACE: $qossettings{'RED_DEV'}
# IMQ DEVICE: $qossettings{'IMQ_DEV'}
+eval $(/usr/local/bin/readhash /var/ipfire/main/settings)
+if [ "$RRDLOG" == "" ]; then
+ RRDLOG=/var/log/rrd
+fi
+
case "\$1" in
status)
( sleep 10 && /usr/local/bin/qosd $qossettings{'RED_DEV'} >/dev/null 2>&1) &
( sleep 10 && /usr/local/bin/qosd $qossettings{'IMQ_DEV'} >/dev/null 2>&1) &
+ for i in \$(ls \$RRDLOG/class_*.rrd); do
+ rrdtool update \$i \$(date +%s):
+ done
+
echo "Quality of Service was successfully started!"
exit 0
;;
iptables -t mangle --flush QOS-TOS >/dev/null 2>&1
iptables -t mangle --delete-chain QOS-TOS >/dev/null 2>&1
rmmod sch_htb >/dev/null 2>&1
+
+ for i in \$(ls \$RRDLOG/class_*.rrd); do
+ rrdtool update \$i \$(date +%s):
+ done
+
echo "Quality of Service was successfully cleared!"
;;
gen|generate)
usr/local/bin/backupiso
usr/local/bin/updxsetperms
var/ipfire/updatexlrator/bin/download
+var/ipfire/qos/bin/makeqosscripts.pl
#
sed -i "s|$OLDVERSION|$NEWVERSION|g" /opt/pakfire/etc/pakfire.conf
#
+# Regenerate qos-scripts
+[ -e /var/ipfire/qos/enable ] && /usr/local/bin/qosctrl stop
+/usr/local/bin/qosctrl generate
+[ -e /var/ipfire/qos/enable ] && /usr/local/bin/qosctrl start
+#
# This core-update need a reboot
/usr/bin/logger -p syslog.emerg -t core-upgrade-28 "Upgrade finished. Please reboot... "
/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.rrd \
+ rrdtool update $RRDLOG/collectd/localhost/interface/if_octets-ppp0.rrd \
$(date +%s)::
exit 0
fi
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.rrd \
+ rrdtool update $RRDLOG/collectd/localhost/interface/if_octets-ppp0.rrd \
$(date +%s)::
fi