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

Daniel Dickinson openwrt at daniel.thecshore.com
Thu Jan 21 18:33:22 EST 2016


On 21/01/16 05:28 PM, Felix Fietkau wrote:
> 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...

Is it unsupported by busybox ip applet?  It is correct on fedora, but I 
forgot to also add to this one that it's untested on a device (like 
openvpn change, because I haven't had a chance to set up a test bed that 
would allow me to test these two; the netifd udhcpc one works in my 
limited testing, but I don't have upstream classless routes, non Class C 
addresses or such; for that I'd need a better test environment).

Regards,

Daniel
_______________________________________________
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