distribution/packages/jelos/sources/scripts/run

15 lines
259 B
Text
Raw Normal View History

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