aboutsummaryrefslogtreecommitdiff
path: root/www/opera/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/opera/files')
-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 $@
+