You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command ip is symlinked with busybox in OpenWRT.
When the symlink option of that command is set to False in a manual test the ip command path (/path/to/ip) can be fetched successfully.
Was there a specific reason to enable symlinks here?
A workaround would be to generate a tc script through tcconfig, modify it and use that.
It would be nice if it works with busybox, too.
If yes, then the symlink option is in question.
The text was updated successfully, but these errors were encountered:
To check the capability permission, it is necessary to obtain the full path of the command entity.
However, in certain environments, you may encounter problems like this issue.
For such cases, we may better consider adding an option to skip obtaining the full path of the commands.
Describe the bug
Fetching command paths like for the
ip
command doesn't work on systems usingbusybox
.OpenWRT uses
busybox
which provides commands likeip
for embedded Linux systems.Expected behavior
Running
tcset
to create incoming rate shaping rules works even if theip
command is provided throughbusybox
.To Reproduce
Steps to reproduce the behavior:
tcset eth0 --direction incoming --rate 1Mbps
/path/to/busybox link add dev ifbXXXX type ifb
and fails with errorsEnvironments
Please execute the following command and past the output:
Removed, reason for this issue is already known and noted below.
Complete the following information:
pip
/deb package
Additional context
Add any other context (logs, error output, etc.) about the problem here.
The
ip
command path is not found on OpenWRT becausetcconfig
uses pythonsubprocrunner.Which
with following symlinks enabled.See
tcconfig/tcconfig/_common.py
Line 45 in e14f9fb
It is used since 179fcaf.
The command
ip
is symlinked withbusybox
in OpenWRT.When the symlink option of that command is set to
False
in a manual test theip
command path (/path/to/ip
) can be fetched successfully.Was there a specific reason to enable symlinks here?
A workaround would be to generate a
tc
script throughtcconfig
, modify it and use that.It would be nice if it works with
busybox
, too.If yes, then the symlink option is in question.
The text was updated successfully, but these errors were encountered: