remove regardless of type

This commit is contained in:
Aaron Murray 2020-04-29 15:25:09 -05:00 committed by GitHub
parent bdbdff042b
commit ee58df4a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 [ -e "${defLink}" ]; then
rm -f "${defLink}"
fi
nic="eth0"