forked from rickysarraf/laptop-mode-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the bug of incorrect use of DEVICE variable in ethernet
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.
- Loading branch information
xinpeng.wang
committed
Sep 22, 2021
1 parent
9839bd2
commit 4394ca2
Showing
1 changed file
with
41 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4394ca2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rickysarraf#171 I just found out that my modification and rickysarraf#171 are the same problem, my modification can solve rickysarraf#171