SOURCES: synergy-client.init, synergy-server.init - correctly call...

arekm arekm at pld-linux.org
Tue Apr 1 11:07:14 CEST 2008


Author: arekm                        Date: Tue Apr  1 09:07:14 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- correctly call hostname -s

---- Files affected:
SOURCES:
   synergy-client.init (1.1 -> 1.2) , synergy-server.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/synergy-client.init
diff -u SOURCES/synergy-client.init:1.1 SOURCES/synergy-client.init:1.2
--- SOURCES/synergy-client.init:1.1	Tue Apr  1 10:57:59 2008
+++ SOURCES/synergy-client.init	Tue Apr  1 11:07:08 2008
@@ -19,7 +19,7 @@
 	echo "$0: SYNERGY_SERVER not set. Please update /etc/synergy/client.conf"
 fi
 
-SYNERGYC_NAME=${SYNERGYC_NAME:-hostname -s}
+SYNERGYC_NAME=${SYNERGYC_NAME:-$(hostname -s)}
 
 killall -TERM synergyc 2> /dev/null
 usleep 300

================================================================
Index: SOURCES/synergy-server.init
diff -u SOURCES/synergy-server.init:1.1 SOURCES/synergy-server.init:1.2
--- SOURCES/synergy-server.init:1.1	Tue Apr  1 10:57:59 2008
+++ SOURCES/synergy-server.init	Tue Apr  1 11:07:09 2008
@@ -15,7 +15,7 @@
         exit 0
 fi
 
-SYNERGYS_NAME=${SYNERGYS_NAME:-hostname -s}
+SYNERGYS_NAME=${SYNERGYS_NAME:-$(hostname -s)}
 
 [ -n "$SYNERGYS_ADDRESS" ] && SYNERGYS_OPTS="$SYNERGYS_OPTS --address $SYNERGYS_ADDRESS"
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/synergy-client.init?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/synergy-server.init?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list