Bug 213683 - /etc/rc.d/init.d/smartd "unary operator expected" error
Summary: /etc/rc.d/init.d/smartd "unary operator expected" error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: smartmontools
Version: 6
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-02 15:42 UTC by Kevin Layer
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: smartmontools-5.36-4.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-07 12:49:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kevin Layer 2006-11-02 15:42:04 UTC
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*" ] \

Comment 1 Tomas Mraz 2006-11-02 15:49:44 UTC
If you remove just the marker and leave the /etc/smartd.conf there or if you
remove the whole line as the comment below says it will work fine. -> Severity
Low. But I agree it should be eventually fixed.



Note You need to log in before you can comment on or make changes to this bug.