-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
armbian-bsp-cli: fix 10-wifi-disable-powermanagement.rules
#7130
base: main
Are you sure you want to change the base?
Conversation
- corrected "iw" path - made rule better targeted at wifi devices - switched from %k (kernel) to $name variable to better integrate with user-provided rules
10-wifi-disable-powermanagement.rules
6124132
to
d45f5f0
Compare
@@ -1 +1 @@ | |||
KERNEL=="wlan*", ACTION=="add", RUN+="/sbin/iw dev %k set power_save off" | |||
SUBSYSTEM=="net", ACTION!="remove", ENV{DEVTYPE}=="wlan", RUN+="/usr/sbin/iw dev $name set power_save off" |
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.
Is path actually needed?
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.
it wouldn't find iw
without path - probably something related to udev sandboxing or some restriction of sorts
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.
OK. got it. Other problem could be that different userland have different location - check for jammy, noble, bookworm, trixie
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.
OK. got it. Other problem could be that different userland have different location - check for jammy, noble, bookworm, trixie
You're right Pal, bookworm and Jammy have /sbin/iw
but rule without absolute path won't work
need to find a way..
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.
Yeah, classic :)
What to do with this? extend to cover both locations? |
Bookworm and Trixie have different prefixes also for sh - |
Description
armbian-bsp-cli: fix 10-wifi-disable-powermanagement.rules
iw
path%k
(kernel) to$name
variable to better integrate with user-provided rulesHow Has This Been Tested?
udeavdm test /sys/class/net/wlan0
output:Checklist: