FC6 and /etc/rc.d/init.d/smartd

Kevin Layer layer at known.net
Thu Nov 2 02:55:59 UTC 2006


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




More information about the fedora-list mailing list