genswap.sh: remove reboot code

This commit is contained in:
mollusk 2020-02-21 14:23:23 -07:00
parent 97c1dfa3d3
commit 995d5772ff

View File

@ -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
echo -e "\n${LGREEN}Swapfile setup complete${NC}\n"
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
fi
}