Created
March 20, 2013 08:20
-
-
Save cibyr/5203121 to your computer and use it in GitHub Desktop.
Shell script fragment to get the latest installed kernel version. Useful for building dkms packages in chroots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls /usr/src/ | grep linux-headers | awk -F '-' '{print $3"-"$4}' | sort | tail -n1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment