Update auto_post_install.sh

This commit is contained in:
MacRimi
2025-09-08 19:24:49 +02:00
parent a2f83c896c
commit d58dff047c

View File

@@ -657,11 +657,15 @@ install_log2ram_auto() {
if [[ "$is_ssd" == true ]]; then if [[ "$is_ssd" == true ]]; then
msg_ok "$(translate "System disk is SSD or M.2. Proceeding with Log2RAM setup.")" msg_ok "$(translate "System disk is SSD or M.2. Proceeding with Log2RAM setup.")"
else else
msg_warn "$(translate "System disk is not SSD/M.2. Skipping Log2RAM installation.")" if whiptail --yesno "$(translate "SDo you want to install Log2RAM anyway to reduce log write load?")" \
return 0 10 70 --title "Log2RAM"; then
else
return 0
fi
fi fi
if [[ -f /etc/log2ram.conf ]] && command -v log2ram >/dev/null 2>&1 && systemctl list-units --all | grep -q log2ram; then if [[ -f /etc/log2ram.conf ]] && command -v log2ram >/dev/null 2>&1 && systemctl list-units --all | grep -q log2ram; then
msg_ok "$(translate "Log2RAM is already installed and configured correctly.")" msg_ok "$(translate "Log2RAM is already installed and configured correctly.")"
register_tool "log2ram" true register_tool "log2ram" true