Exit mildly so we can continue even if we can't do a setup
This commit is contained in:
@@ -4,10 +4,14 @@
|
|||||||
# adds a resume hook to mkinitcpio, and configures suspend-then-hibernate.
|
# adds a resume hook to mkinitcpio, and configures suspend-then-hibernate.
|
||||||
|
|
||||||
if [[ ! -f /sys/power/image_size ]]; then
|
if [[ ! -f /sys/power/image_size ]]; then
|
||||||
echo -e "\033[31mError: Hibernation is not supported on your system\033[0m" >&2
|
echo -e "Hibernation is not supported on your system" >&2
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
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"
|
MKINITCPIO_CONF="/etc/mkinitcpio.conf.d/omarchy_resume.conf"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user