diff --git a/src/freedombone-utils-wifi b/src/freedombone-utils-wifi index cdfa4ee7..2e3bfb38 100755 --- a/src/freedombone-utils-wifi +++ b/src/freedombone-utils-wifi @@ -49,8 +49,11 @@ function default_network_config { # device names get assigned random names. This is a hacky workaround. # Also adding net.ifnames=0 to kernel options on bootloader may work. function enable_predictable_device_names { - ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules - update-initramfs -u + test_predictable=$(ls -la /etc/udev/rules.d/80-net-setup-link.rules) + if [[ "$test_predictable" != *"/dev/null" ]]; then + ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules + update-initramfs -u + fi } function wifi_is_running {