Update kernel-clean.sh
This commit is contained in:
parent
b0481d605f
commit
21b62610b5
1 changed files with 1 additions and 4 deletions
|
@ -68,14 +68,11 @@ function edge_kernel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function kernel_info() {
|
function kernel_info() {
|
||||||
latest_kernel=$(dpkg --list| grep 'kernel-.*-pve' | awk '{print $2}' | tac | head -n 1)
|
|
||||||
if [[ "$MODE" != "PBS" ]]; then
|
if [[ "$MODE" != "PBS" ]]; then
|
||||||
echo -e "${YW}PVE Version: ${BL}$(pveversion)\n${CL}"
|
echo -e "${YW}PVE Version: ${BL}$(pveversion)\n${CL}"
|
||||||
fi
|
fi
|
||||||
if [[ "$current_kernel" == *"pve"* ]]; then
|
if [[ "$current_kernel" == *"pve"* ]]; then
|
||||||
if [[ "$latest_kernel" != *"$current_kernel"* ]]; then
|
echo -e "${YW}Current Kernel: ${BL}$current_kernel\n${CL}"
|
||||||
echo -e "${GN}Latest Kernel: $latest_kernel\n${CL}"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo -e "\n${CROSS} ${RD}ERROR: No PVE Kernel Found\n${CL}"
|
echo -e "\n${CROSS} ${RD}ERROR: No PVE Kernel Found\n${CL}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue