Added release for Raspberry Pi.

This commit is contained in:
Dorian Zedler 2020-06-11 12:28:50 +02:00
parent bc8592d9f1
commit 876434227e
Signed by: dorian
GPG key ID: 989DE36109AFA354
11 changed files with 61 additions and 0 deletions

BIN
release/ScStwMonitor.deb Normal file

Binary file not shown.

2
release/build.sh Executable file
View file

@ -0,0 +1,2 @@
dpkg-deb --build debian
mv debian.deb ScStwMonitor.deb

View file

@ -0,0 +1,9 @@
Package: ScStwMonitor
Version: 1.1
Section: base
Priority: optional
Architecture: armhf
Depends: libScStwSharedLibraries (>=1.1.0), xinit (>= 1.4.0-1), x11-xserver-utils (>= 7.7+8+rpi1)
Maintainer: Dorian Zedler <dorian@itsblue.de>
Description: ScStwMonitor
This is the ScStwMonitor Application, used with the ScStw project

4
release/debian/DEBIAN/postinst Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
systemctl enable scstwmonitor.service
systemctl daemon-reload
systemctl start scstwmonitor.service

3
release/debian/DEBIAN/postrm Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
systemctl disable scstwmonitor.service
systemctl daemon-reload

5
release/debian/DEBIAN/preinst Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
if [[ $1 = upgrade ]]; then
systemctl stop scstwmonitor.service
fi

2
release/debian/DEBIAN/prerm Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
systemctl stop scstwmonitor.service

View file

@ -0,0 +1,25 @@
[Unit]
Description=ScStwMonitor Service
#Documentation=man:sshd(8) man:sshd_config(5)
After=network.target
#ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
[Service]
#ExecStartPre=/usr/sbin/sshd -t
ExecStart=xinit /usr/bin/ScStwMonitor --noControls --
WorkingDirectory=/
User=root
StandardOutput=inherit
StandardError=inherit
#ExecReload=/usr/sbin/sshd -t
#ExecReload=/bin/kill -HUP $MAINPID
#KillMode=process
Restart=on-failure
#RestartPreventExitStatus=255
#RuntimeDirectory=
#RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target
#Alias=ScStwBasestation.service

View file

@ -0,0 +1 @@
../share/ScStwMonitor/ScStwMonitor.sh

Binary file not shown.

View file

@ -0,0 +1,10 @@
#!/bin/bash
BASE_DIR=$(dirname "$(readlink -f "$0")")
# prevent screen blanking
sudo xset s off
sudo xset -dpms
sudo xset s noblank
# start Monitor
"$BASE_DIR"/ScStwMonitor -platform xcb "$@"