Lines 4-14
Link Here
|
4 |
# (c) 2004 by Rick Stout <zipsonic@gmail.com> |
4 |
# (c) 2004 by Rick Stout <zipsonic@gmail.com> |
5 |
|
5 |
|
6 |
# Note: NX does not check the exit-code from nxclient, |
6 |
# Note: NX does not check the exit-code from nxclient, |
7 |
# but we set it to a "good value" anyway in case |
7 |
# but we set it to a "good value" anyway in case |
8 |
# it does check it someday. |
8 |
# it does check it someday. |
9 |
|
|
|
10 |
# First check if the commercial nxclient is available and use it |
9 |
# First check if the commercial nxclient is available and use it |
11 |
[ -x /usr/NX/bin/nxclient ] && exec /usr/NX/bin/nxclient "$@" |
10 |
|
|
|
11 |
# but check that it isn't this script to prevent a loop! |
12 |
NXCLIENT="/usr/NX/bin/nxclient" |
13 |
[ -x ${NXCLIENT} -a "`file -bi ${NXCLIENT}`" != 'application/x-shellscript' ] \ |
14 |
&& exec ${NXCLIENT} "$@" |
12 |
|
15 |
|
13 |
TEMP=`getopt -a -o d: --long local,noautokill,dialog:,caption:,message:,display: -n $(basename $0) -- "$@"` |
16 |
TEMP=`getopt -a -o d: --long local,noautokill,dialog:,caption:,message:,display: -n $(basename $0) -- "$@"` |
14 |
|
17 |
|