Group :: Networking/Remote access
RPM: italc
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: italc-1.0.9.1.6-alt-no-avahi.patch
Download
Download
ica/ica-launcher.in | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ica/ica-launcher.in b/ica/ica-launcher.in
index 5e1330a..e16fde8 100644
--- a/ica/ica-launcher.in
+++ b/ica/ica-launcher.in
@@ -72,16 +72,18 @@ then
sleep 1s
fi
-if [ -f /usr/bin/avahi-publish-service ] && [ ! -f @SYSCONFDIR@/ltsp/getltscfg-cluster.conf ]
+AVAHIPUBLISHSERVICE="/usr/bin/avahi-publish-service"
+
+if [ -f $AVAHIPUBLISHSERVICE ] && [ ! -f @SYSCONFDIR@/ltsp/getltscfg-cluster.conf ]
then
echo Announce the service on avahi
- avahi-publish-service "italc $USER" _italc._tcp $IVSPORT $MD5_1 $MD5_2 $MD5_3 "$HOSTNAME" > /dev/null &
+ $AVAHIPUBLISHSERVICE "italc $USER" _italc._tcp $IVSPORT $MD5_1 $MD5_2 $MD5_3 "$HOSTNAME" > /dev/null &
fi
echo Starting ICA
ica -noshm -isdport $ISDPORT -ivsport $IVSPORT -role $ROLE 2> /dev/null
-if [ -f /usr/bin/avahi-publish-service ] && [ ! -f @SYSCONFDIR@/ltsp/getltscfg-cluster.conf ]
+if [ -f $AVAHIPUBLISHSERVICE ] && [ ! -f @SYSCONFDIR@/ltsp/getltscfg-cluster.conf ]
then
echo Stopping avahi
kill `ps ux | grep avahi-publish-service | grep italc | grep $IVSPORT | grep $USER | awk '{print \$2}'`