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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux