components/pconsole/patches/pconsole.sh.in.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Mon, 10 Apr 2017 11:54:32 -0700
branchs11u3-sru
changeset 7853 87236a3c36b4
parent 5966 9a7d9bde3d8f
permissions -rw-r--r--
25694511 xattr can't be built on recent CBE

*** pconsole-1.0/pconsole.sh.in.orig	Fri Jul 15 07:04:26 2011
--- pconsole-1.0/pconsole.sh.in	Fri Jul 15 12:17:18 2011
***************
*** 1,4 ****
! #! /bin/sh
  #
  #   pconsole WJ101
  #   Copyright (C) 2001  Walter de Jong <[email protected]>
--- 1,4 ----
! #! /bin/bash
  #
  #   pconsole WJ101
  #   Copyright (C) 2001  Walter de Jong <[email protected]>
***************
*** 31,41 ****
  	set -x
  fi
  
! PATH=/bin:/usr/bin:/usr/bin/X11:/usr/openwin/bin:/usr/local/bin:/usr/bsd:/usr/share/bin:/opt/bin:/etc:/usr/etc
  
  prefix=@prefix@
  exec_prefix=@exec_prefix@
  bindir=@bindir@
  
  #
  #	options: you can overrule these by setting them in your environment
--- 31,42 ----
  	set -x
  fi
  
! PATH=/usr/gnu/bin:/usr/sbin:/usr/bin:/etc
  
  prefix=@prefix@
  exec_prefix=@exec_prefix@
  bindir=@bindir@
+ sbindir=@sbindir@
  
  #
  #	options: you can overrule these by setting them in your environment
***************
*** 50,56 ****
  fi
  if [ -z "${P_CONNECT_CMD}" ]
  then
! 	P_CONNECT_CMD="${bindir}/ssh.sh"
  fi
  if [ -z "${P_CONSOLE_OPTIONS}" ]
  then
--- 51,57 ----
  fi
  if [ -z "${P_CONNECT_CMD}" ]
  then
! 	P_CONNECT_CMD="/usr/share/doc/pconsole/ssh.sh"
  fi
  if [ -z "${P_CONSOLE_OPTIONS}" ]
  then
***************
*** 145,151 ****
  	done
  
  # start pconsole
! 	${P_TERM} ${P_CONSOLE_OPTIONS} -title pconsole -name pconsole -e "${bindir}/pconsole" ${TTYS}
  
  # terminate all open windows
  	if [ ! -z "${PIDLIST}" ]
--- 146,152 ----
  	done
  
  # start pconsole
! 	${P_TERM} ${P_CONSOLE_OPTIONS} -title pconsole -name pconsole -e ${bindir}/pfexec "${sbindir}/pconsole-bin" ${TTYS}
  
  # terminate all open windows
  	if [ ! -z "${PIDLIST}" ]