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"
|
echo -e "${LRED}Swap line does not exist in /etc/fstab, please manually check this.${NC}\n"
|
||||||
|
|
||||||
else
|
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}"
|
echo -e "\n${LGREEN}Swapfile setup complete${NC}\n"
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user