Added release for Raspberry Pi.
This commit is contained in:
parent
bc8592d9f1
commit
876434227e
11 changed files with 61 additions and 0 deletions
BIN
release/ScStwMonitor.deb
Normal file
BIN
release/ScStwMonitor.deb
Normal file
Binary file not shown.
2
release/build.sh
Executable file
2
release/build.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
dpkg-deb --build debian
|
||||||
|
mv debian.deb ScStwMonitor.deb
|
9
release/debian/DEBIAN/control
Normal file
9
release/debian/DEBIAN/control
Normal 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
4
release/debian/DEBIAN/postinst
Executable 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
3
release/debian/DEBIAN/postrm
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
systemctl disable scstwmonitor.service
|
||||||
|
systemctl daemon-reload
|
5
release/debian/DEBIAN/preinst
Executable file
5
release/debian/DEBIAN/preinst
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ $1 = upgrade ]]; then
|
||||||
|
systemctl stop scstwmonitor.service
|
||||||
|
fi
|
2
release/debian/DEBIAN/prerm
Executable file
2
release/debian/DEBIAN/prerm
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
systemctl stop scstwmonitor.service
|
25
release/debian/etc/systemd/system/scstwmonitor.service
Normal file
25
release/debian/etc/systemd/system/scstwmonitor.service
Normal 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
|
||||||
|
|
1
release/debian/usr/bin/ScStwMonitor
Symbolic link
1
release/debian/usr/bin/ScStwMonitor
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../share/ScStwMonitor/ScStwMonitor.sh
|
BIN
release/debian/usr/share/ScStwMonitor/ScStwMonitor
Executable file
BIN
release/debian/usr/share/ScStwMonitor/ScStwMonitor
Executable file
Binary file not shown.
10
release/debian/usr/share/ScStwMonitor/ScStwMonitor.sh
Executable file
10
release/debian/usr/share/ScStwMonitor/ScStwMonitor.sh
Executable 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 "$@"
|
Reference in a new issue