diff mbox

[OpenWrt-Devel] package/network/config/qos-scripts: Drop ifconfig and use ip command instead

Message ID 1453314149-91110-1-git-send-email-openwrt@daniel.thecshore.com
State Superseded
Delegated to: Felix Fietkau
Headers show

Commit Message

Daniel Dickinson Jan. 20, 2016, 6:22 p.m. UTC
From: Daniel Dickinson <openwrt@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@daniel.thecshore.com>
---
 package/network/config/qos-scripts/files/usr/lib/qos/generate.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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"