summaryrefslogtreecommitdiff
path: root/network/freenx/patches/nxserver_multimedia.diff
diff options
context:
space:
mode:
Diffstat (limited to 'network/freenx/patches/nxserver_multimedia.diff')
-rw-r--r--network/freenx/patches/nxserver_multimedia.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/network/freenx/patches/nxserver_multimedia.diff b/network/freenx/patches/nxserver_multimedia.diff
new file mode 100644
index 0000000000..6f16bf9c24
--- /dev/null
+++ b/network/freenx/patches/nxserver_multimedia.diff
@@ -0,0 +1,29 @@
+--- freenx-server-0.7.3/nxserver.orig 2008-12-30 21:21:40.000000000 +0100
++++ freenx-server-0.7.3/nxserver 2008-12-30 21:22:50.000000000 +0100
+@@ -1447,7 +1447,7 @@
+ # Now check for the other enabled services
+
+ let SAMBA_DISPLAY=$SESS_DISPLAY+3000
+- if [ "$(getparam 'samba')" = 1 ] && $COMMAND_NETCAT -z "$SERVER_HOST" $SAMBA_DISPLAY
++ if [ "$(getparam 'samba')" = 1 ] && $COMMAND_NETCAT -z "$SERVER_HOST" $SAMBA_DISPLAY 2>/dev/null
+ then
+ log 2 "Warning: Skipping $SERVER_HOST:$AGENT_DISPLAY as samba port is not free."
+ let SESS_DISPLAY=$SESS_DISPLAY+1
+@@ -1455,7 +1455,7 @@
+ fi
+
+ let MEDIA_DISPLAY=$SESS_DISPLAY+7000
+- if [ "$(getparam 'media')" = 1 ] && $COMMAND_NETCAT -z "$SERVER_HOST" $MEDIA_DISPLAY
++ if [ "$(getparam 'media')" = 1 ] && $COMMAND_NETCAT -z "$SERVER_HOST" $MEDIA_DISPLAY 2>/dev/null
+ then
+ log 2 "Warning: Skipping $SERVER_HOST:$AGENT_DISPLAY as media port is not free."
+ let SESS_DISPLAY=$SESS_DISPLAY+1
+@@ -1464,7 +1464,7 @@
+
+
+ let CUPS_DISPLAY=$SESS_DISPLAY+9000
+- if [ "$(getparam 'cups')" = 1 ] && $COMMAND_NETCAT -z "$SERVER_HOST" $CUPS_DISPLAY
++ if [ "$(getparam 'cups')" = 1 ] && $COMMAND_NETCAT -z "$SERVER_HOST" $CUPS_DISPLAY 2>/dev/null
+ then
+ log 2 "Warning: Skipping $SERVER_HOST:$AGENT_DISPLAY as cups port is not free."
+ let SESS_DISPLAY=$SESS_DISPLAY+1