From de92eca149585313d9ddb492e078bbe7a3a6bec5 Mon Sep 17 00:00:00 2001 From: Santiago Reig Date: Wed, 29 Apr 2020 19:36:52 +0200 Subject: [PATCH] delete also if 99-default.link is a symbolic link Closes https://github.com/openmediavault/openmediavault/issues/682 and https://github.com/openmediavault/openmediavault/issues/683 In Raspbian Buster 2020-02-13, the file is a symbolic link to /dev/null and is not detected correctly with the -f condition --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 6942253..cbf8a92 100755 --- a/install +++ b/install @@ -385,7 +385,7 @@ fi # remove networkmanager and dhcpcd5 then configure networkd if [ ${version} -gt 4 ]; then defLink="/etc/systemd/network/99-default.link" - if [ -f "${defLink}" ]; then + if [ -f "${defLink}" || -L "${defLink}" ]; then rm -f "${defLink}" fi nic="eth0"