Skip to content

Commit

Permalink
cachyos-settings: add is-enabled check around uksmd disable (#241)
Browse files Browse the repository at this point in the history
This prevents an error when it is already disabled or not installed.
  • Loading branch information
csutcliff authored Jun 18, 2024
1 parent cdd2ab9 commit d88ff26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cachyos-settings/cachyos-settings.install
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ post_upgrade() {
systemctl enable "$service"
fi
done
echo "Disabling uksmd, managed now via systemd 256 MemoryKSM"
systemctl disable uksmd
if systemctl is-enabled uksmd >/dev/null; then
echo "Disabling uksmd, managed now via systemd 256 MemoryKSM"
systemctl disable uksmd
fi
}

0 comments on commit d88ff26

Please sign in to comment.