group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #16943
[Bug 1720558] Re: 89: /lib/hdparm/hdparm-functions: Syntax error: "fi" unexpected
The version of hdparm in the official Ubuntu archive for Ubuntu 16.04,
9.48+ds-1, does not contain this error. Maybe Mint did modify the
package?
** Also affects: hdparm (Ubuntu Xenial)
Importance: Undecided
Status: New
** Changed in: hdparm (Ubuntu)
Status: Incomplete => Fix Released
** Changed in: hdparm (Ubuntu Xenial)
Status: New => Invalid
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1720558
Title:
89: /lib/hdparm/hdparm-functions: Syntax error: "fi" unexpected
Status in hdparm package in Ubuntu:
Fix Released
Status in hdparm source package in Xenial:
Invalid
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