@ -42,7 +42,8 @@ if [ "$1" != "-foreground" ]; then
if [ ${#screenPID} -eq 0 ]; then
# start copystation in sreen
echo "starting copystation screen session"
screen -S copystation -dR /home/admin/XXcopyStation.sh -foreground
screen -S copystation -dm /home/admin/XXcopyStation.sh -foreground
screen -d -r
exit 0
else
echo "changing into running copystation screen session"