Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507630 - app-laptop/laptop-mode-tools - /usr/sbin/laptop_mode: line 205: HDPARM~_DEBUG: syntax error in expression (error token is ~_DEBUG)
Summary: app-laptop/laptop-mode-tools - /usr/sbin/laptop_mode: line 205: HDPARM~_DEBUG...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-14 12:32 UTC by jimmij
Modified: 2014-04-14 14:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jimmij 2014-04-14 12:32:23 UTC
Systemd cannot start laptop-mode (1.63-r2, last stable) with the following error:

---------
[  OK  ] Started Login Service.
/usr/sbin/laptop_mode: line 205: HDPARM~_DEBUG: syntax error in expression (error token is ~_DEBUG)
[FAILED] Failed to start Laptop Mode Tools.
See 'systemctl status laptop-mode.service' for details.
---------
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2014-04-14 13:39:29 UTC
Do you have leftovers of backup file in /etc/laptop-mode/modules/, /usr/share/laptop-mode-tools/modules/ ? look for hdparm with ~ somewhere
Comment 2 jimmij 2014-04-14 14:22:26 UTC
Uhhh, indeed I had /usr/share/laptop-mode-tools/modules/hdparm~.
I was affected by https://bugs.gentoo.org/show_bug.cgi?id=477958 so as a workaround for 1.63-r2 I've edited /usr/share/laptop-mode-tools/modules/hdparm manually with emacs editor which by itself created hdparm~ as a backup file.
Marked bug as solved. Thx.