summaryrefslogtreecommitdiffstats
path: root/other/systemd/mba6x-backlight.service
blob: 04441a70e79d0e4d183bfc6c767a7cada15af2f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# copy to /usr/lib/systemd/system/ (at least on Arch Linux)

[Unit]
Description=Load/Save Screen Backlight Brightness of backlight:mba6x_backlight
DefaultDependencies=no
RequiresMountsFor=/var/lib/systemd/backlight
Conflicts=shutdown.target
After=systemd-remount-fs.service
Before=sysinit.target shutdown.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/systemd/systemd-backlight load backlight:mba6x_backlight
ExecStop=/usr/lib/systemd/systemd-backlight save backlight:mba6x_backlight

[Install]
WantedBy=multi-user.target