[OpenWrt-Devel] [PATCH] package/network/config/qos-scripts: Drop ifconfig and use ip command instead
openwrt at daniel.thecshore.com
openwrt at daniel.thecshore.com
Wed Jan 20 13:22:29 EST 2016
From: Daniel Dickinson <openwrt at daniel.thecshore.com>
This is finall package in base that depends on ifconfig, so
remove the the dependency on ifconfig and replace ifconfig
command with ip command.
Signed-off-by: Daniel Dickinson <openwrt at daniel.thecshore.com>
---
package/network/config/qos-scripts/files/usr/lib/qos/generate.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
index caa1125..3d48417 100755
--- a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
@@ -321,7 +321,7 @@ start_interface() {
append cstr "$classnr:$prio:$avgrate:$pktsize:$pktdelay:$maxrate:$qdisc:$filter" "$N"
done
append ${prefix}q "$(tcrules)" "$N"
- export dev_${dir}="ifconfig $dev up txqueuelen 5 >&- 2>&-
+ export dev_${dir}="ip link set $dev up txqueuelen 5 >&- 2>&-
tc qdisc del dev $dev root >&- 2>&-
tc qdisc add dev $dev root handle 1: hfsc default ${class_default}0
tc class add dev $dev parent 1: classid 1:1 hfsc sc rate ${rate}kbit ul rate ${rate}kbit"
--
2.4.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list