Skip to content

Commit

Permalink
v9.6
Browse files Browse the repository at this point in the history
- DietPi-Patches | Be more careful when removing our ifup@.service config. Remove our own config, and the directory only, if it is empty afterwards.
  • Loading branch information
MichaIng committed Jul 2, 2024
1 parent e765387 commit c0bd77d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .update/patches
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0bd77d

Please sign in to comment.