summaryrefslogtreecommitdiff
path: root/www/opera/files/operapluginwrapper
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2008-11-19 10:43:57 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2008-11-19 10:43:57 +0000
commitf982be45e81588a27383cd1a3eb12789b8498904 (patch)
tree07be283d015b2c39f95e655cb7328ff355bc47fa /www/opera/files/operapluginwrapper
parent- Fix modes of the temp directory [1] (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_6_4_0'.release/6.4.0
Diffstat (limited to 'www/opera/files/operapluginwrapper')
-rw-r--r--www/opera/files/operapluginwrapper20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/opera/files/operapluginwrapper b/www/opera/files/operapluginwrapper
new file mode 100644
index 000000000000..1e3ef651bb93
--- /dev/null
+++ b/www/opera/files/operapluginwrapper
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ -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 $@
+