remove dhcpcd5 causing two IP addresses on raspbian
This commit is contained in:
1 parent
b0212c34e0
commit
285c31ad1a
1 file changed
+3
-3
@@ -288,12 +288,12 @@ cat << EOF > ${ioniceCron}
|
||||
EOF
|
||||
chmod 600 ${ioniceCron}
|
||||
|
||||
# remove networkmanager and configure networkd
|
||||
# remove networkmanager and dhcpcd5 then configure networkd
|
||||
if [ ${version} -gt 4 ]; then
|
||||
nic="eth0"
|
||||
if grep -qw "${nic}" /proc/net/dev; then
|
||||
echo "Removing network-manager ..."
|
||||
apt-get -y --autoremove purge network-manager
|
||||
echo "Removing network-manager and dhcpcd5 ..."
|
||||
apt-get -y --autoremove purge network-manager dhcpcd5
|
||||
|
||||
echo "Enable and start systemd-resolved ..."
|
||||
systemctl enable systemd-resolved
|
||||
|
||||
Reference in new issue
Block a user