Fix jslisten bug.

This commit is contained in:
fewtarius 2022-07-30 10:10:44 -04:00
parent 9da5c17f1d
commit f4804dfe7f
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -11,6 +11,7 @@ jslisten() {
if [ "$1" == "set" ]
then
systemctl stop jslisten
rm /storage/.config/system/configs/jslisten.cfg
if [ "$2" == "mpv" ]
then
@ -42,6 +43,7 @@ program="/usr/bin/manage_mpv.sh back60s"
button1=${DEVICE_BTN_TL2}
EOF
fi
cat <<EOF >>${JSLISTENCONF}
[KillAll]
@ -61,7 +63,6 @@ button1=${DEVICE_BTN_TL}
button2=${DEVICE_BTN_DPAD_DOWN}
EOF
fi
systemctl start jslisten
elif [ "$1" == "stop" ]
then