From bd2a715006feeaa04661ae2e998019ac7ce146ab Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Tue, 21 Apr 2020 06:03:11 -0500 Subject: [PATCH] remove 99-default.link file if exists to fix netplan apply --- install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install b/install index 26ffe32..16ce9c8 100755 --- a/install +++ b/install @@ -13,7 +13,7 @@ # https://github.com/armbian/config/blob/master/debian-software # https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/ # -# version: 1.0.4 +# version: 1.0.5 # if [[ $(id -u) -ne 0 ]]; then @@ -374,6 +374,10 @@ fi # remove networkmanager and dhcpcd5 then configure networkd if [ ${version} -gt 4 ]; then + defLink="/etc/systemd/network/99-default.link" + if [ -f "${defLink}" ]; then + rm -f "${defLink}" + fi nic="eth0" if grep -qw "${nic}" /proc/net/dev; then echo "Removing network-manager and dhcpcd5 ..."