[Bug 1720558] Re: 89: /lib/hdparm/hdparm-functions: Syntax error: "fi" unexpected
silviop
far5893 at iperbole.bologna.it
Fri Oct 13 18:35:12 UTC 2017
mint 18.3 based on 16.04.3 as they state.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to hdparm in Ubuntu.
https://bugs.launchpad.net/bugs/1720558
Title:
89: /lib/hdparm/hdparm-functions: Syntax error: "fi" unexpected
Status in hdparm package in Ubuntu:
Incomplete
Bug description:
in hdparm_options() there is a comment in else statement and after there is a fi
but else fi without nothing between is a syntax error.
Not working:
if hdparm_try_apm "$WANTED_DISK"; then
if hdparm_is_on_battery; then
hdparm_set_option -B128
# set a spindown time of 3 minutes by default so the disk isn't
# constantly power cycling on a busy machine if spindown is
# enabled
hdparm_set_option -S36
else
# hdparm_set_option -B254
fi
fi
Fixed:
if hdparm_try_apm "$WANTED_DISK"; then
if hdparm_is_on_battery; then
hdparm_set_option -B128
# set a spindown time of 3 minutes by default so the disk isn't
# constantly power cycling on a busy machine if spindown is
# enabled
hdparm_set_option -S36
#else
# hdparm_set_option -B254
fi
fi
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1720558/+subscriptions
More information about the foundations-bugs
mailing list