From 4bdbb06cfc136e9a241ca54e79de6ae328baddb6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 31 Aug 2025 15:41:32 +0200 Subject: [PATCH] Extract the reboot segment into its own file --- install.sh | 13 +------------ install/reboot.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 install/reboot.sh diff --git a/install.sh b/install.sh index 9c2d7e4..dec27fd 100755 --- a/install.sh +++ b/install.sh @@ -54,15 +54,4 @@ source $OMARCHY_INSTALL/login/limine-snapper.sh source $OMARCHY_INSTALL/login/alt-bootloaders.sh # Reboot -clear -tte -i ~/.local/share/omarchy/logo.txt --frame-rate 920 laseretch -echo -echo "You're done! So we're ready to reboot now..." | tte --frame-rate 640 wipe - -if sudo test -f /etc/sudoers.d/99-omarchy-installer; then - sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null - echo -e "\nRemember to remove USB installer!\n\n" -fi - -sleep 5 -reboot +source $OMARCHY_INSTALL/reboot.sh diff --git a/install/reboot.sh b/install/reboot.sh new file mode 100644 index 0000000..d444c14 --- /dev/null +++ b/install/reboot.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +clear +tte -i ~/.local/share/omarchy/logo.txt --frame-rate 920 laseretch +echo +echo "You're done! So we're ready to reboot now..." | tte --frame-rate 640 wipe + +if sudo test -f /etc/sudoers.d/99-omarchy-installer; then + sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null + echo -e "\nRemember to remove USB installer!\n\n" +fi + +sleep 5 +reboot