distribution/packages/jelos/sources/scripts/run

22 lines
391 B
Text
Raw Normal View History

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2020-present Fewtarius
. /etc/profile
RUN=$(echo ${1} | sed 's# #\\ #g')
if [ "${UI_SERVICE}" = "weston.service" ]
then
weston-terminal --command="${RUN}"
else
systemctl stop ${UI_SERVICE}
clear
2022-10-09 19:01:26 +00:00
"$*" >/dev/console 2>&1
clear
fi
if [ ! "${UI_SERVICE}" = "weston.service" ]
then
systemctl start ${UI_SERVICE}
fi