mirror of https://github.com/tteck/Proxmox.git
Update and rename kernelclean.sh to kernel-clean.sh
This commit is contained in:
parent
4793b2e238
commit
b27b040dab
|
@ -5,7 +5,15 @@ RD=`echo "\033[01;31m"`
|
||||||
CM='\xE2\x9C\x94\033'
|
CM='\xE2\x9C\x94\033'
|
||||||
GN=`echo "\033[1;92m"`
|
GN=`echo "\033[1;92m"`
|
||||||
CL=`echo "\033[m"`
|
CL=`echo "\033[m"`
|
||||||
# Current kernel
|
while true; do
|
||||||
|
read -p "This will Clean unused Kernel images. Proceed(y/n)?" yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]* ) break;;
|
||||||
|
[Nn]* ) exit;;
|
||||||
|
* ) echo "Please answer yes or no.";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
clear
|
||||||
current_kernel=$(uname -r)
|
current_kernel=$(uname -r)
|
||||||
function check_root {
|
function check_root {
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
@ -13,7 +21,6 @@ function check_root {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
clear
|
|
||||||
function header_info {
|
function header_info {
|
||||||
echo -e "${RD}
|
echo -e "${RD}
|
||||||
_ __ _ _____ _
|
_ __ _ _____ _
|
Loading…
Reference in New Issue