remove 99-default.link file if exists to fix netplan apply
This commit is contained in:
parent
11e2aa3f35
commit
bd2a715006
6
install
6
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 ..."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user