[laptop-mode] [PATCH] laptop-mode script confused by mount points with spaces

Ritesh Raj Sarraf rrs at researchut.com
Sun Sep 20 10:27:53 CEST 2009


--nextPart2626983.4ah4H4XWBk
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

Hi Louis,

Thanks for the patch.
I had to apply it manually though. I don't know what is stopping Ubuntu to=
=20
pull in the new release.

Ritesh

On Sunday 20 Sep 2009 12:40:52 Louis Simard wrote:
> Hi,
>=20
> The script 'laptop-mode', which is in charge of remounting partitions
> without the atime mount flag, gets confused by mount points containing
> spaces (actually, any octal escape). For reference, the script is
> installed in Ubuntu as
> /usr/share/laptop-mode-tools/modules/laptop-mode . Attached is a patch
> to fix this problem.
>=20
> -- Prior to patch --
>=20
> /etc/mtab says:
> /dev/sdf1 /media/External\040HDD ext3 rw,nosuid,nodev,uhelper=3Ddevkit 0 0
> mount point name: /media/External HDD
>=20
> /usr/sbin/laptop_mode says:
> Laptop mode enabled, active
> mount: mount point /media/External040HDD does not exist
>=20
> -- Output with this patch --
>=20
> Laptop mode enabled, active
>=20
> I'm using Ubuntu Karmic alpha 6 AMD64 with their version 1.47-ubuntu1
> of Laptop Mode Tools; this patch should be against your version 1.47
> as well.
>=20
> Regards,
> - Louis Simard
>=20

=2D-=20
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

--nextPart2626983.4ah4H4XWBk
Content-Description: This is a digitally signed message part.
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.samwel.tk/pipermail/laptop-mode/attachments/20090920/237f5766/attachment.pgp>

--nextPart2626983.4ah4H4XWBk--


More information about the laptop-mode mailing list