• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Do not modify this file, it will get overwritten on updates.
2# To override or extend the rules place a file in /etc/udev/rules.d
3
4SUBSYSTEM!="net", GOTO="nm_drivers_end"
5ACTION!="add|change", GOTO="nm_drivers_end"
6
7# Determine ID_NET_DRIVER if there's no ID_NET_DRIVER or DRIVERS (old udev?)
8ENV{ID_NET_DRIVER}=="?*", GOTO="nm_drivers_end"
9DRIVERS=="?*", GOTO="nm_drivers_end"
10PROGRAM="/bin/sh -c '/usr/sbin/ethtool -i $$1 |/usr/bin/sed -n s/^driver:\ //p' -- $env{INTERFACE}", ENV{ID_NET_DRIVER}="%c"
11
12LABEL="nm_drivers_end"
13