Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37745171
en ru br
ALT Linux repos
5.0: 1.0.13-alt0.M50.1
4.1: 1.0.13-alt0.M41.1
4.0: 1.0.7-alt2.M40.1

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


 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}'`
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin