From 995d5772ff687285c643504e1c089625724056e4 Mon Sep 17 00:00:00 2001 From: mollusk Date: Fri, 21 Feb 2020 14:23:23 -0700 Subject: [PATCH] genswap.sh: remove reboot code --- genswap.sh | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/genswap.sh b/genswap.sh index b67c976..50a0242 100755 --- a/genswap.sh +++ b/genswap.sh @@ -85,20 +85,10 @@ function autoSwap(){ echo -e "${LRED}Swap line does not exist in /etc/fstab, please manually check this.${NC}\n" else - echo -e "${LGREEN}Swap successfully added to /etc/fstab! Reboot to verify success...${NC}\n" + echo -e "${LGREEN}Swap successfully added to /etc/fstab${NC}\n" - echo -e "${YELLOW}Do you want to reboot your system now?(n/Y): ${NC}" - read rebootCheck - - if [ "${rebootCheck}" = "y" ] || [ "${rebootCheck}" = "Y" ];then - echo -e "${LRED}Rebooting system in 3 seconds...${NC}\n" - - sleep 3 - - sudo reboot - else - echo -e "\n${LGREEN}Swapfile setup complete, setting swappiness level...${NC}\n" - fi + echo -e "\n${LGREEN}Swapfile setup complete${NC}\n" + fi }