Basically check the existence of file /var/run/reboot-required
For more info have a look at this answer in an ubuntu thread
March 27, 2013 | Categories: bash, Ubuntu | Tags: bash, debian, kubuntu, lubuntu, server, ubuntu, updates, xubuntu | Leave a comment
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Join 13 other followers
Create a free website or blog at WordPress.com.