sys-power/auto-cpufreq: remove redundant file existence check

The file in question is being managed by the PM, therefore it's
guaranteed to not exist anymore during the post-removal phase.

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2024-08-13 17:27:01 +02:00
parent 7d5a0d1ceb
commit b102a73d41
2 changed files with 0 additions and 10 deletions

View File

@@ -120,11 +120,6 @@ pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
# Remove the polkit policy
if [ -f "/usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy" ]; then
rm -rf /usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy || die
fi
# Remove the override.pickle file and directory
if [[ -d "/var/lib/auto-cpufreq" ]]; then
rm -rf /var/lib/auto-cpufreq

View File

@@ -120,11 +120,6 @@ pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
# Remove the polkit policy
if [ -f "/usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy" ]; then
rm -rf /usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy || die
fi
# Remove the override.pickle file and directory
if [[ -d "/var/lib/auto-cpufreq" ]]; then
rm -rf /var/lib/auto-cpufreq