#!/bin/bash
smartctl=smartctl
return=2
if [ ! -x `which $smartctl` ] ; then
	exit 2
fi
$smartctl -e /dev/$1 >> /dev/null 2>&1
if [ $? = 0 ] ; then echo $1 ; return=0 ; fi
exit $return

