summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/yaggui/files')
-rw-r--r--net-p2p/yaggui/files/yaggui.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-p2p/yaggui/files/yaggui.sh b/net-p2p/yaggui/files/yaggui.sh
new file mode 100644
index 000000000000..7b7c89b43cbc
--- /dev/null
+++ b/net-p2p/yaggui/files/yaggui.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+if [ ! "$(ps -A | grep -e giftd)" ]
+then
+ echo "Error! Unable to find giFT daemon!"
+ echo "Attempting to start the giFT daemon..."
+ giftd > /dev/null &
+ if [ ! "$(ps -A | grep -e giftd)" ]
+ then
+ echo "Could not start the giFT daemon! Continuing to load Yaggui..."
+ else
+ echo "giFT daemon started, continuing to load Yaggui..."
+ fi
+fi
+
+java -jar /usr/share/yaggui/lib/Yaggui.jar