|
@@ -49,8 +49,11 @@ function default_network_config {
|
49
|
49
|
# device names get assigned random names. This is a hacky workaround.
|
50
|
50
|
# Also adding net.ifnames=0 to kernel options on bootloader may work.
|
51
|
51
|
function enable_predictable_device_names {
|
52
|
|
- ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
|
53
|
|
- update-initramfs -u
|
|
52
|
+ test_predictable=$(ls -la /etc/udev/rules.d/80-net-setup-link.rules)
|
|
53
|
+ if [[ "$test_predictable" != *"/dev/null" ]]; then
|
|
54
|
+ ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
|
|
55
|
+ update-initramfs -u
|
|
56
|
+ fi
|
54
|
57
|
}
|
55
|
58
|
|
56
|
59
|
function wifi_is_running {
|