#!/sbin/runscript # Run this before 70-persistent-net.rules to allow swapping to eth* # # Then you can use rules like: # # SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="bc:ae:c5:59:5a:85", NAME="eth0" # SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="bc:ae:c5:59:5a:fd", NAME="eth1" description="Renames ethX to ethXtmp to avoid udev rename conflicts" depend() { before dev } start() { for i in {1..9999}; do ip link set dev eth${i} name eth${i}tmp 2>/dev/null done }