armbian-bsp-cli: fix 10-wifi-disable-powermanagement.rules#7130
armbian-bsp-cli: fix 10-wifi-disable-powermanagement.rules#7130alexl83 wants to merge 6 commits intoarmbian:mainfrom
10-wifi-disable-powermanagement.rules#7130Conversation
- 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.
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.
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.
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..
|
What to do with this? extend to cover both locations? |
Bookworm and Trixie have different prefixes also for sh - |
|
Any update on this? |
https://wiki.debian.org/UsrMerge is what's going on. To find the location of a binary, it is customary to use "which" or for POSIX-compliance "command -v". A lesser-used one is "whereis". |
Description
armbian-bsp-cli: fix 10-wifi-disable-powermanagement.rules
iwpath%k(kernel) to$namevariable to better integrate with user-provided rulesHow Has This Been Tested?
udeavdm test /sys/class/net/wlan0output:Checklist: