add type to IMPORT keyword in ifrename's udev rules file

Bug-Debian: http://bugs.debian.org/650606

Gbp-Pq: Name add-import-type-to-udev-rules
This commit is contained in:
Guus Sliepen 2022-05-14 03:18:38 +08:00 committed by openKylinBot
parent c55759f1cd
commit b35521a511
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@
# when udev runs (i.e. on boot partition).
# Enable this rule to test with udevtest.
#ENV{UDEV_LOG}=="6", SUBSYSTEM=="net", ACTION=="add", IMPORT="/sbin/ifrename -D -V -u -i %k", NAME:="$env{INTERFACE}"
#ENV{UDEV_LOG}=="6", SUBSYSTEM=="net", ACTION=="add", IMPORT{program}="/sbin/ifrename -D -V -u -i %k", NAME:="$env{INTERFACE}"
# Main ifrename rule.
# If interface is found in /etc/iftab, subsequent rename rules are bypassed.
# If interface is not found in /etc/iftab, subsequent rename rules applies.
SUBSYSTEM=="net", ACTION=="add", IMPORT="/sbin/ifrename -u -i %k", NAME:="$env{INTERFACE}"
SUBSYSTEM=="net", ACTION=="add", IMPORT{program}="/sbin/ifrename -u -i %k", NAME:="$env{INTERFACE}"