3
# Make sure we have a terminal for the user to see and then run
4
# the real install script.
6
# Some systems don't correctly set the PWD when a script is double-clicked,
7
# so go ahead and figure out our path and make sure we are in that directory.
10
PKG_PATH=$(dirname "$(readlink -f "$0")")
13
# check for an interactive terminal
14
# -t fd - Returns true if file descriptor fd is open and refers to a terminal.
17
if which xterm > /dev/null; then
18
exec xterm -e "${PKG_PATH}/.stage2.run"
19
elif which gnome-terminal > /dev/null; then
20
exec gnome-terminal -e "${PKG_PATH}/.stage2.run"
21
elif which konsole > /dev/null; then
22
exec konsole -e "${PKG_PATH}/.stage2.run"
25
"${PKG_PATH}/.stage2.run"