Add "post start" script to start fan control and screen controllers.

pull/490/head
Christopher Young 2016-09-11 17:06:06 -04:00
rodzic 03f3957a0d
commit 333bb6c3ce
3 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -4,6 +4,7 @@ After=network.target
[Service]
ExecStartPre=/root/stratux-pre-start.sh
ExecStartPost=/root/stratux-post-start.sh
ExecStart=/usr/bin/gen_gdl90
ExecStop=pkill dump1090
KillMode=process

Wyświetl plik

@ -0,0 +1,4 @@
#!/bin/bash
/usr/bin/stratux-screen.py
/usr/bin/fancontrol.py

Wyświetl plik

@ -134,3 +134,7 @@ mkdir -p /etc/stratux-screen/
cp -f /root/stratux/test/screen/stratux-logo-64x64.bmp /etc/stratux-screen/stratux-logo-64x64.bmp
cp -f /root/stratux/test/screen/CnC_Red_Alert.ttf /etc/stratux-screen/CnC_Red_Alert.ttf
#startup scripts
cp -f __lib__systemd__system__stratux.service /lib/systemd/system/stratux.service
cp -f __root__stratux-pre-start.sh /root/stratux-pre-start.sh
cp -f __root__stratux-post-start.sh /root/stratux-post-start.sh