forked from http://tig.csail.mit.edu/git-public/smartd.git/