diff --git a/packages/misc/modules/sources/JelosAddOns.sh b/packages/misc/modules/sources/JelosAddOns.sh index b7cc80d14..6aa63be2a 100755 --- a/packages/misc/modules/sources/JelosAddOns.sh +++ b/packages/misc/modules/sources/JelosAddOns.sh @@ -3,4 +3,8 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright 2022-present BrooksyTech (https://github.com/brooksytech) +if [ "${UI_SERVICE}" = "weston.service" ] +then + sed -i -e "s#/dev/tty0#/dev/tty#" /storage/roms/PortMaster.sh +fi /storage/roms/ports/JelosAddOns.sh diff --git a/packages/misc/modules/sources/PortMaster.sh b/packages/misc/modules/sources/PortMaster.sh index e99ac9611..50bb9194d 100755 --- a/packages/misc/modules/sources/PortMaster.sh +++ b/packages/misc/modules/sources/PortMaster.sh @@ -6,6 +6,6 @@ if [ "${UI_SERVICE}" = "weston.service" ] then - sed -i -e "s#[2]\>.*tty0##" -e "s#\>.*dev/tty0##g" /storage/roms/ports/PortMaster.sh + sed -i -e "s#/dev/tty0#/dev/tty#" /storage/roms/PortMaster.sh fi /storage/roms/ports/PortMaster.sh