Skip to content

Fix the bug of incorrect use of DEVICE variable in ethernet#172

Open
wxphaha wants to merge 1 commit intorickysarraf:lmt-upstreamfrom
wxphaha:lmt-upstream
Open

Fix the bug of incorrect use of DEVICE variable in ethernet#172
wxphaha wants to merge 1 commit intorickysarraf:lmt-upstreamfrom
wxphaha:lmt-upstream

Conversation

@wxphaha
Copy link
Copy Markdown

@wxphaha wxphaha commented Sep 22, 2021

Part of the code uses DEVICE before assigning a value to DEVICE, which will cause the condition to be judged incorrectly.
For example, if there is another network card NO-CARRIER, it will cause eth0 to be erroneously disabled.
Move this part of the code after assigning a value to the DEVICE.

Author: xinpeng.wang wangxinpeng@uniontech.com

Part of the code uses DEVICE before assigning a value to DEVICE, which will cause the condition to be judged incorrectly.
For example, if there is another network card NO-CARRIER, it will cause eth0 to be erroneously disabled.
Move this part of the code after assigning a value to the DEVICE.
@rickysarraf rickysarraf self-assigned this Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants