Fix to properly test if reboot is required Current version of 'needs-restarting' command only has '-r' switch on CentOS 7 distros. What is worse, for latest RHEL versions (like Fedora), this command dropped '-r' switch, which makes impossible making it easy to determine if reboot is required. Any version of this command on CentOS 6 or Fedora Server, would return false positive output. The only way to test, if new kernel was installed, is to compare currently running kernel, with latest installed (excluding custom) kernel, along with latest reboot time and latest kernel install time.
Fix to properly test if reboot is required
Current version of 'needs-restarting' command only has '-r' switch on CentOS 7 distros. What is worse, for latest RHEL versions (like Fedora), this command dropped '-r' switch, which makes impossible making it easy to determine if reboot is required. Any version of this command on CentOS 6 or Fedora Server, would return false positive output. The only way to test, if new kernel was installed, is to compare currently running kernel, with latest installed (excluding custom) kernel, along with latest reboot time and latest kernel install time.

https://sourceforge.net/p/webadmin/bugs/5280/
https://github.com/authentic-theme/authentic-theme/issues/1381

nawawi/webmin,webmin/webmin,webmin/webmin,nawawi/webmin,webmin/webmin,webmin/webmin,nawawi/webmin,nawawi/webmin,nawawi/webmin,webmin/webmin,webmin/webmin,nawawi/webmin,webmin/webmin,webmin/webmin,webmin/webmin,nawawi/webmin,webmin/webmin,nawawi/webmin,nawawi/webmin,nawawi/webmin