source: ogAgent-Git/linux/scripts/OGAgentTool-startup

qndtest
Last change on this file was 31159d4, checked in by Ramón M. Gómez <ramongomez@…>, 5 years ago

#914: Fix permissions for some OGAgent scripts.

  • Property mode set to 100755
File size: 294 bytes
Line 
1#!/bin/sh
2
3# Simple hack to wait for systray to be present
4# Exec tool if not already runned by session manager
5ps -ef | grep "$USER" | grep -v grep | grep -v OGAgentTool-startup | grep 'OGAgentTool' -q
6# If not already running
7if [ $? -eq 1 ]; then
8    sleep 5
9    exec /usr/bin/OGAgentTool
10fi
Note: See TracBrowser for help on using the repository browser.