[OpenWrt-Devel] [PATCH 3/3] package/network/config/qos-scripts: Drop ifconfig and use ip command instead
Felix Fietkau
nbd at openwrt.org
Thu Jan 21 17:28:46 EST 2016
On 2016-01-20 20:22, openwrt at daniel.thecshore.com wrote:
> From: Daniel Dickinson <openwrt at daniel.thecshore.com>
>
> This is the final package in base that depends on ifconfig, so
> remove the the dependency on ifconfig and replace ifconfig
> command with ip command. After packages there are various
> target preinit scripts that need work.
>
> 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>&-
This doesn't actually work...
- Felix
_______________________________________________
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