my $level7file = "/var/ipfire/qos/level7config";
my $portfile = "/var/ipfire/qos/portconfig";
my $tosfile = "/var/ipfire/qos/tosconfig";
-my $fqcodel_options = "noecn limit 800 quantum 500";
+my $fqcodel_options = "limit 800 quantum 500";
&General::readhash("${General::swroot}/ethernet/settings", \%netsettings);
insmod ipt_IMQ
sleep 2
fi
- modprobe imq numdevs=1
+ modprobe imq numdevs=1 numqueues=\$(grep -c "^processor" /proc/cpuinfo || echo 1)
ip link set $qossettings{'IMQ_DEV'} up
### ADD HTB QDISC FOR $qossettings{'IMQ_DEV'}
echo "Quality of Service was successfully cleared!"
;;
gen|generate)
- echo -n "Generateing the QoS-Scripts..."
+ echo -n "Generating the QoS-Scripts..."
/usr/bin/perl /var/ipfire/qos/bin/makeqosscripts.pl > /var/ipfire/qos/bin/qos.sh
echo ".Done!"
exit 0