diff --git a/.update/patches b/.update/patches index 4c248367e8..fdb8a26263 100755 --- a/.update/patches +++ b/.update/patches @@ -1708,7 +1708,8 @@ Patch_9_6() fi # Remove obsolete drop-in config: https://github.com/MichaIng/DietPi/issues/7104 - [[ -d '/etc/systemd/system/ifup@.service.d' ]] && G_EXEC rm -R /etc/systemd/system/ifup@.service.d + [[ -f '/etc/systemd/system/ifup@.service.d/dietpi.conf' ]] && G_EXEC rm -R /etc/systemd/system/ifup@.service.d/dietpi.conf + [[ -d '/etc/systemd/system/ifup@.service.d' ]] && G_EXEC rmdir --ignore-fail-on-non-empty /etc/systemd/system/ifup@.service.d } # v6.35 => v7 migration