Code cleanup

This commit is contained in:
T
2025-09-05 22:53:31 +02:00
parent c54e2649ef
commit e13881b07b
7 changed files with 233 additions and 256 deletions

17
1og/service.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Generate systemd service file
FILE=/etc/systemd/system/buttond.service
cat > $FILE << EOF
[Unit]
Description = buttonctl
[Service]
Type = simple
ExecStart = /usr/bin/python3 $PWD/button.py
[Install]
WantedBy=multi-user.target
Alias=buttond.service
EOF