If I were to have a script that will only, or I only want to run on devices with a specific kernel, could I possibly use a command or function to check if the correct version is present before continuing? Could it really be as simple as using regular expression with -r?
Thanks for any ideas!
EDIT:
Maybe my post wasn't worded the best. Is there a way to verify the kernel is indeed the correct one before proceeding with the REST of the script else it stops running?