aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/qos-scripts/files
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-30 17:25:21 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-03 10:42:35 +0200
commit50413e1ec83dedaea44558d5f37af5454156a46a (patch)
treea80358842c8ef3e9fd7fb9038ff46d3ab45f5ab9 /package/network/config/qos-scripts/files
parent356866c481cf74e87b9025ebbfdef0995674dca3 (diff)
downloadupstream-50413e1ec83dedaea44558d5f37af5454156a46a.tar.gz
upstream-50413e1ec83dedaea44558d5f37af5454156a46a.tar.bz2
upstream-50413e1ec83dedaea44558d5f37af5454156a46a.zip
package: replace remaining occurrences of ifconfig with ip
ifconfig is effectively deprecated for quite some time now. Let's replace the remaining occurrences for packages by the corresponding ip commands now. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/network/config/qos-scripts/files')
-rwxr-xr-xpackage/network/config/qos-scripts/files/usr/lib/qos/generate.sh2
1 files changed, 1 insertions, 1 deletions
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 024be0c170..32f15581f8 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
@@ -326,7 +326,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 >&- 2>&-
+ export dev_${dir}="ip link set $dev up >&- 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"