summaryrefslogtreecommitdiff
path: root/www/opera-devel/files/operapluginwrapper
blob: fcec17e85d8078809d596ec27e26df4a5d130643 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

if [ -n "$5" ]; then
	ELFTYPE=`brandelf $5`
elif [ -n "$4" ]; then
	ELFTYPE=`brandelf $4`
elif [ -n "$3" ]; then
	ELFTYPE=`brandelf $3`
fi

WRAPPER="freebsd"

case "${ELFTYPE}" in
	*SVR4*|*Linux*)
		if [ -x "$0.linux" ]; then
			WRAPPER="linux"
		fi
	;;
esac

exec $0.$WRAPPER $@