#!/bin/bash
mkfifo /tmp/upgrade.fifo

set | grep -q WINDOWID
status=$?

if [ $status = 0 ]
then
 echo "This script must run from the console (CTRL + ALT + F3) or ssh." 1>&2
 exit 1
fi


if [ "$(id -u)" != "0" ];
then
   echo "This script must be run as root." 1>&2
   exit 1

fi


sv stop mythbackend
sv stop frontend

screen -c /usr/LH/etc/upgrade_screen_rc