File: fte.sh

package info (click to toggle)
fte 0.50.2b6-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,596 kB
  • ctags: 6,433
  • sloc: cpp: 47,985; ansic: 2,795; sh: 112; makefile: 105; perl: 29
file content (30 lines) | stat: -rwxr-xr-x 751 bytes parent folder | download | duplicates (6)
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
#
# simple wrapper shell script which selects appropriate fte executable
#

if [ -n "$DISPLAY" ]; then
	if which xfte >/dev/null; then
		exec xfte "$@"
	elif which sfte >/dev/null; then
		exec sfte "$@"
	elif which nfte >/dev/null; then
		exec nfte "$@"
	elif which vfte >/dev/null; then
		echo "Only Console version installed!"
	fi
else
	if [ "$TERM" = linux ] && tty | egrep '^/dev/tty[0-9]+$' >/dev/null && which vfte >/dev/null; then
		exec vfte "$@"
	elif which sfte >/dev/null; then
		exec sfte "$@"
	elif which nfte >/dev/null; then
		exec nfte "$@"
	elif which xfte >/dev/null; then
		echo "Only X-Window version installed!"
	fi

fi

echo "No binary executable from the FTE family has been found!"
echo "Please install one of them."