teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0329-units-Do-not-unescape-instance-name-in-systemd-backl.patch

84b277
From 51aa47339565893e48a3533250d392fcdb80a675 Mon Sep 17 00:00:00 2001
84b277
From: =?UTF-8?q?Thomas=20B=C3=A4chler?= <thomas@archlinux.org>
84b277
Date: Fri, 7 Mar 2014 01:50:34 +0100
84b277
Subject: [PATCH] units: Do not unescape instance name in
84b277
 systemd-backlight@.service
84b277
84b277
The instance name is never escaped in the udev rule, but unescaped in the unit.
84b277
This results in the following error message on Asus boards:
84b277
84b277
  Failed to get backlight or LED device 'backlight:eeepc/wmi': No such file or directory
84b277
84b277
(cherry-picked from 6c49212741253dae05b89d22374186f092ef1e5a)
84b277
84b277
Resolves: #1147524
84b277
---
84b277
 units/systemd-backlight@.service.in | 6 +++---
84b277
 1 file changed, 3 insertions(+), 3 deletions(-)
84b277
84b277
diff --git a/units/systemd-backlight@.service.in b/units/systemd-backlight@.service.in
84b277
index 5caa5d5..e945d87 100644
84b277
--- a/units/systemd-backlight@.service.in
84b277
+++ b/units/systemd-backlight@.service.in
84b277
@@ -6,7 +6,7 @@
84b277
 #  (at your option) any later version.
84b277
 
84b277
 [Unit]
84b277
-Description=Load/Save Screen Backlight Brightness of %I
84b277
+Description=Load/Save Screen Backlight Brightness of %i
84b277
 Documentation=man:systemd-backlight@.service(8)
84b277
 DefaultDependencies=no
84b277
 RequiresMountsFor=/var/lib/systemd/backlight
84b277
@@ -17,5 +17,5 @@ Before=sysinit.target shutdown.target
84b277
 [Service]
84b277
 Type=oneshot
84b277
 RemainAfterExit=yes
84b277
-ExecStart=@rootlibexecdir@/systemd-backlight load %I
84b277
-ExecStop=@rootlibexecdir@/systemd-backlight save %I
84b277
+ExecStart=@rootlibexecdir@/systemd-backlight load %i
84b277
+ExecStop=@rootlibexecdir@/systemd-backlight save %i