Exit mildly so we can continue even if we can't do a setup

This commit is contained in:
David Heinemeier Hansson
2026-02-21 18:01:39 +01:00
parent 5c70555308
commit ac3a5ca32e
+6 -2
View File
@@ -4,10 +4,14 @@
# adds a resume hook to mkinitcpio, and configures suspend-then-hibernate.
if [[ ! -f /sys/power/image_size ]]; then
echo -e "\033[31mError: Hibernation is not supported on your system\033[0m" >&2
exit 1
echo -e "Hibernation is not supported on your system" >&2
exit 0
fi
if ! command -v limine-mkinitcpio &>/dev/null; then
echo "Skipping hibernation setup (requires Limine bootloader)"
exit 0
fi
MKINITCPIO_CONF="/etc/mkinitcpio.conf.d/omarchy_resume.conf"