With the following rules content, why does the echo command
specified not write to /sys/bus/usb/drivers/mt7925u/new_id, why does
it append to that file?
You forgot to include the rule and that isn't a "file". Only the usb
ones are even readable and I don't know why. But that file is for
adding a new item to the driver, it won't replace anything that it's
currently handling, so I'm not surprised that it would appear to be
appending. If you want to get rid of a previous one, you would need
to use "remove_id".
Sorry, I did forget to supply the contents of the rules file, it is
now below. I've also added a snippet from the file as well.
ACTION=="add", \
SUBSYSTEM=="usb", \
ENV{ID_VENDOR_ID}=="0846", \
ENV{ID_MODEL_ID}=="9072", \
RUN+="/usr/sbin/modprobe mt7925u", \
RUN+="/bin/sh -c 'echo 0846 9072 >
/sys/bus/usb/drivers/mt7925u/new_id'"
sudo cat /sys/bus/usb/drivers/mt7925u/new_id
[sudo] password for steve:
0846 9072
0846 9072
0846 9072
0846 9072
0846 9072
0846 9072
0846 9072
regards,
I've now removed the rule as I am using another device for wifi but it
also doesn't work. The new device I'm using may not work until the 6.18
kernel becomes released. Thankyou for your assistance.
regards,
BEGIN:VCARD
VERSION:4.0
N:Morris;Stephen;;;
FN:Steve
EMAIL;PREF=1;TYPE=home:[email protected]
END:VCARD
--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue