If I change /etc/smartd.conf and remove the auto-generated marker so my changes do not get clobbered, I get an error when the init script is run:
/etc/rc.d/init.d/smartd: line 40: [: ==: unary operator expected
This change fixes the problem:
&& [ "$GEN_CONF" == "*SMARTD*AUTOGENERATED*" ] \
to
&& [ $GEN_CONF == "*SMARTD*AUTOGENERATED*" ] \
I originally sent this to the smartmontools-support mailing list and they said it wasn't their code...
Kevin