systemd: add service

This commit is contained in:
Asmir A 2024-03-18 19:37:46 +01:00
parent 9043844893
commit 6c802d0ae4
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2
3 changed files with 24 additions and 0 deletions

6
makefile Normal file
View File

@ -0,0 +1,6 @@
install:
cp ./zremap.service /etc/systemd/system
cp ./zremap-start /usr/local/bin
systemctl daemon-reload
systemctl enable zremap.service

5
zremap-start Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
sleep 1
zremap /dev/input/by-path/platform-i8042-serio-0-event-kbd

13
zremap.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=zremap keyboard remapping service
After=system.slice sysinit.target basic.target systemd-journald.socket
Before=shutdown.target multi-user.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=no
ExecStart=/usr/local/bin/zremap-start
[Install]
WantedBy=multi-user.target