distribution/packages/jelos/sources/scripts/run
2022-09-24 20:08:04 -04:00

16 lines
277 B
Bash
Executable file

#!/bin/bash
. /etc/profile
if [ "${UI_SERVICE}" = "weston.service" ]
then
weston-terminal --command="${1}"
else
systemctl stop ${UI_SERVICE}
clear
"${1}" >/dev/console 2>&1
clear
fi
if [ ! "${UI_SERVICE}" = "weston.service" ]
then
systemctl start ${UI_SERVICE}
fi