16 lines
281 B
Bash
Executable file
16 lines
281 B
Bash
Executable file
#!/bin/bash
|
|
. /etc/profile
|
|
|
|
if [ "${UI_SERVICE}" = "weston.service" ]
|
|
then
|
|
weston-terminal --command="${1}"
|
|
else
|
|
systemctl stop ${UI_SERVICE}
|
|
exec 1>/dev/console
|
|
exec 2>/dev/null
|
|
${1}
|
|
fi
|
|
if [ ! "${UI_SERVICE}" = "weston.service" ]
|
|
then
|
|
systemctl start ${UI_SERVICE}
|
|
fi
|