Herzlichen Dank Sauerland, das hätte ich so alleine nicht hinbekommen.
Hat soweit alles funktioniert, der letzte Befehl bringt aber eine Fehlermeldung:
Code
systemctl start touch.service
Job for touch.service failed because the control process exited with error code.
See "systemctl status touch.service" and "journalctl -xe" for details.
ergibt dann:
Code
systemctl status touch.service
● touch.service - Enable Touchpad
Loaded: loaded (/etc/systemd/system/touch.service; enabled; vendor preset:>
Active: failed (Result: exit-code) since Tue 2022-11-22 08:17:45 CET; 4min>
Process: 2472 ExecStart=/home/user/bin/touchpad.sh (code=exited, status=1/F>
CPU: 11ms
Nov 22 08:17:45 raspberry systemd[1]: Starting Enable Touchpad...
Nov 22 08:17:45 raspberry touchpad.sh[2473]: Unable to connect to X server
Nov 22 08:17:45 raspberry systemd[1]: touch.service: Control process exited, co>
Nov 22 08:17:45 raspberry systemd[1]: touch.service: Failed with result 'exit-c>
Nov 22 08:17:45 raspberry systemd[1]: Failed to start Enable Touchpad.
Alles anzeigen