genswap.sh: remove reboot code
This commit is contained in:
parent
97c1dfa3d3
commit
995d5772ff
14
genswap.sh
14
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
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user