a4f661fc |
1 | #!/bin/bash |
2 | |
3 | echo -n "Checking for HTB support (2.6.x Linux kernel series only) ..." |
4 | HTB=`cat /proc/config.gz |gunzip|grep CONFIG_NET_SCH_HTB` |
5 | if [ "$HTB" = "CONFIG_NET_SCH_HTB=y" ] || [ "$HTB" = "CONFIG_NET_SCH_HTB=m" ] |
6 | then |
7 | echo " ok." |
8 | else |
9 | echo " failed!" |
10 | echo "** Missing /proc/config.gz, missing gunzip, or missing HTB support in kernel.. **" |
11 | echo "** You are likely to get RTNETLINK error messages when running Prometheus QoS. **" |
12 | fi |
13 | |
14 | echo -n "Checking for SFQ support (2.6.x Linux kernel series only) ..." |
15 | SFQ=`cat /proc/config.gz |gunzip|grep CONFIG_NET_SCH_SFQ` |
16 | if [ "$SFQ" = "CONFIG_NET_SCH_SFQ=y" ] || [ "$SFQ" = "CONFIG_NET_SCH_SFQ=m" ] |
17 | then |
18 | echo " ok." |
19 | else |
20 | echo " failed!" |
21 | echo "** Missing /proc/config.gz, missing gunzip, or missing SFQ support in kernel.. **" |
22 | echo "** You are likely to get RTNETLINK error messages when running Prometheus QoS. **" |
23 | fi |
24 | |