Index: src/rootfs_static_data/common/etc/udev/rules.d/70-persistent-net.rules |
diff --git a/src/rootfs_static_data/common/etc/udev/rules.d/70-persistent-net.rules b/src/rootfs_static_data/common/etc/udev/rules.d/70-persistent-net.rules |
new file mode 100644 |
index 0000000000000000000000000000000000000000..68425944827ac2db02d933b9913f8eddb950d004 |
--- /dev/null |
+++ b/src/rootfs_static_data/common/etc/udev/rules.d/70-persistent-net.rules |
@@ -0,0 +1,6 @@ |
+# If we don't create generic udev rules, then udev will try to save the |
+# history of various devices (i.e. always associate a given device and MAC |
+# address with the same wlan number). As we use a keyfob across different |
+# machines the ethN and wlanN keep changing. |
+SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" |
+SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0" |