bashisms in laptop-mode cause it to fail

Bug #237266 reported by Anders Kaseorg
2
Affects Status Importance Assigned to Milestone
laptop-mode-tools (Debian)
Fix Released
Unknown
laptop-mode-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: laptop-mode-tools

Setting up laptop-mode-tools (1.42-1ubuntu1) ...
 * Enabling laptop mode...
[: 945: ==: unexpected operator
[: 945: ==: unexpected operator
[: 945: ==: unexpected operator

$ dpkg -L laptop-mode-tools | xargs grep ==
/usr/sbin/laptop_mode:if [ "$1" == "start" ]; then
/usr/sbin/laptop_mode:elif [ "$1" == "stop" ] || [ "$2" == "stop" ]; then
/usr/share/laptop-mode-tools/modules/laptop-mode: if [ "$FST" == "ext3" -a "$MP" == "/" ] ; then

Need to change == to =.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Thanks for your report! Here is a debdiff that fixes this. I reported the relevant part in Debian as well.

Changed in laptop-mode-tools:
status: New → Confirmed
Changed in laptop-mode-tools:
status: Unknown → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, uploaded!

(Btw, remember to list 'intrepid' instead of 'hardy' in your debdiff, or if you're aiming for an SRU, list 'hardy-proposed').

Changed in laptop-mode-tools:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package laptop-mode-tools - 1.42-1ubuntu2

---------------
laptop-mode-tools (1.42-1ubuntu2) intrepid; urgency=low

  * fix bashisms (LP: #237266)

 -- Tormod Volden <email address hidden> Wed, 04 Jun 2008 11:47:34 +0200

Changed in laptop-mode-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.