blob: e825e537202c07e90d383ae2444333eb0f38bb59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
# Wrapper for the %%TX_PORT%% shell "%%TX_SHELL%%"
%%TX_SHELL_U%%=
%%TX_SHELL_U%%_CONF=%%TX_CONF_FULL%%
if [ ! -f "${%%TX_SHELL_U%%_CONF}" ]; then
%%TX_SHELL_U%%_CONF=${%%TX_SHELL_U%%_CONF}.sample
fi
if [ -f "${%%TX_SHELL_U%%_CONF}" ]; then
. ${%%TX_SHELL_U%%_CONF}
if [ -n "${%%TX_SHELL_U%%}" ]; then
if [ -x "${%%TX_SHELL_U%%}" ]; then
exec ${%%TX_SHELL_U%%} "$@"
else
%%ECHO_CMD%% "File not found or not executable: ${%%TX_SHELL_U%%}"
%%ECHO_CMD%% "Please check variable %%TX_SHELL_U%% in: ${%%TX_SHELL_U%%_CONF}"
fi
else
%%ECHO_CMD%% "You do not have set path to default %%TX_SHELL%% in the configuration file:"
%%ECHO_CMD%% "%%TX_CONF_FULL%%"
%%ECHO_CMD%% "Please see the sample configuration file for details:"
%%ECHO_CMD%% "%%TX_CONF_FULL%%.sample"
fi
else
%%ECHO_CMD%% "Configuration file not found: %%TX_CONF_FULL%%"
%%ECHO_CMD%% "Please see the sample configuration file for details:"
%%ECHO_CMD%% "%%TX_CONF_FULL%%.sample"
fi
|