WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: udev ethernet nic rename rule in backup  (Read 2243 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
udev ethernet nic rename rule in backup
« on: July 31, 2013, 08:45:12 AM »
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx...", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

Is there a way to apply these renaming actions after fully booting, i.e. after the backup got restored? Else I have to plug my wifi stick out and in again to generate the hotplug events.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: udev ethernet nic rename rule in backup
« Reply #1 on: July 31, 2013, 09:33:30 AM »
"udevadm --trigger" or something like that...

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: udev ethernet nic rename rule in backup
« Reply #2 on: July 31, 2013, 10:08:58 AM »
tried that already to no avail

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: udev ethernet nic rename rule in backup
« Reply #3 on: July 31, 2013, 10:21:17 AM »
Hi hiro
Did you use  --reload-rules  first?

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: udev ethernet nic rename rule in backup
« Reply #4 on: July 31, 2013, 02:08:53 PM »
No, but now I tried udevadm control --reload-rules before running udevadm trigger and it still doesn't trigger.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: udev ethernet nic rename rule in backup
« Reply #5 on: July 31, 2013, 03:56:38 PM »
See the trigger options, ie action=add subsystem=net etc. The default trigger action is "change".
The only barriers that can stop you are the ones you create yourself.