Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 846 Bytes

22.04-OEM-C.md

File metadata and controls

12 lines (9 loc) · 846 Bytes

For the alert box when linux-oem-22.04c receives an update

A new OEM C kernel has been released, please re-run the command below to make sure you're on the latest Ubuntu 22.04 linux-oem-22.04c kernel.

  • Browse to Activities in the upper left corner, click to open it.
  • Type out the word terminal, click to open it.
  • Left click and drag to highlight and copy the code below in the gray box, right click/paste to copy it into the terminal window.
  • Then press the enter key, password, reboot.
latest_oem_kernel=$(ls /boot/vmlinuz-* | awk -F"-" '{split($0, a, "-"); version=a[3]; if (version>max) {max=version; kernel=a[2] "-" a[3] "-" a[4]}} END{print kernel}') && sudo sed -i.bak '/^GRUB_DEFAULT=/c\GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux '"$latest_oem_kernel"'"' /etc/default/grub && sudo update-grub