Linux.com

Reboot like a racecar with kexec

Posted by: Anonymous [ip: 66.151.59.138] on October 16, 2008 01:32 PM
""" if [ -x `locate kexec | grep sbin` ]; then # check for the kexec executable"""
That is very poor style. What if kexec is in the locatepath but is NOT in the PATH
variable? Then your kexec commands fail.

You seriously might want to update the article with something like this:
if [ -x "`which kexec`" ]; then

#

Return to Reboot like a racecar with kexec