remote-tty (4.0-13) console.sh

Summary

 console.sh |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

    
download this patch

Patch contents

--- remote-tty-4.0.orig/console.sh
+++ remote-tty-4.0/console.sh
@@ -31,16 +31,16 @@
 host=$1
 
 [ -z "$host" ] && {
-	ls DESTPATH/sock
+	ls /var/run/remote-tty/sock
 	exit
 }
 
-if [ -s DESTPATH/opt/${host}.cons ]; then
-	options=`cat DESTPATH/opt/${host}.cons`
-elif [ -s DESTPATH/opt/DEFAULT.cons ]; then
-	options=`cat DESTPATH/opt/DEFAULT.cons`
+if [ -s /etc/remote-tty/opt/${host}.cons ]; then
+	options=`cat /etc/remote-tty/opt/${host}.cons`
+elif [ -s /etc/remote-tty/opt/DEFAULT.cons ]; then
+	options=`cat /etc/remote-tty/opt/DEFAULT.cons`
 else
 	options="$default_options"
 fi
 
-exec DESTPATH/bin/rtty $options $cmdopts DESTPATH/sock/$host
+exec /usr/bin/remote-tty $options $cmdopts /var/run/remote-tty/sock/$host