fix: init.d script use correct resolution and fix log
This commit is contained in:
@@ -2,13 +2,32 @@
|
|||||||
|
|
||||||
export SLINT_BACKEND=linuxkms-software
|
export SLINT_BACKEND=linuxkms-software
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
mode=$(
|
||||||
|
SLINT_DRM_MODE=list /usr/bin/winf-photobooth-app 2>&1 |
|
||||||
|
awk '$1 == "Index:" && $4 == 1280 && $6 == 1024 {
|
||||||
|
print $2
|
||||||
|
exit
|
||||||
|
}'
|
||||||
|
)
|
||||||
|
|
||||||
|
if [ -z "$mode" ]; then
|
||||||
|
echo "No 1280x1024 display mode available" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export SLINT_DRM_MODE="$mode"
|
||||||
start-stop-daemon -S -b -m \
|
start-stop-daemon -S -b -m \
|
||||||
-p /run/winf-photobooth-app.pid \
|
-p /run/winf-photobooth-app.pid \
|
||||||
-x /usr/bin/winf-photobooth-app \
|
-x /usr/bin/winf-photobooth-app \
|
||||||
>> /var/log/winf-photobooth-app.log 2>&1
|
-O /var/log/winf-photobooth-app.log
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
start-stop-daemon -K -p /run/winf-photobooth-app.pid
|
start-stop-daemon -K -p /run/winf-photobooth-app.pid
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user