$ udevadm info /sys/class/net/enp0s26u1u2 You may have to adjust the idVendor attribute depending on your phone. etc/udev/rules.d/les # Execute pairing program when appropriateĪCTION="add|remove", SUBSYSTEM="net", ATTR="rndis_host", SYMLINK+="android", RUN+="/usr/bin/systemctl restart rvice" Using systemd-networkd you can automatically adjust the networking to use the phone as the gateway when plugged in. ![]() ![]() Reason: networkd can handle interface changes without a restart, so why this udev rule? (Discuss in Talk:Android tethering)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |