I’d like a worklet/policy that checks against several flavors of Linux to see if the system requires a reboot (it may be Ubuntu, RedHat, CentOS, etc) and then runs the remediation code if it does require the reboot.
I understand it’s different for each flavor of Linux, but Automox appears to use such code in determining whether a Linux system requires are reboot in the Automox UI.
What should be the evaluation code to use for this worklet?