summaryrefslogtreecommitdiff
path: root/www/opera6
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-04-11 20:58:10 +0000
committerjmmv <jmmv>2003-04-11 20:58:10 +0000
commitf324891d29ace5dae368152c00c7600b2f80b34f (patch)
tree75e3498945556cae4bec2784c1e3c215239e155e /www/opera6
parentc8cdf1a13d9604ba42040d1dd7ac9f93b7565b9d (diff)
downloadpkgsrc-f324891d29ace5dae368152c00c7600b2f80b34f.tar.gz
Call sysctl explicitly with path (i.e., /sbin/sysctl), so it's found even
if /sbin is not in user's path. Unset LD_LIBRARY_PATH before starting opera's binary; it won't work if set. Closes PR pkg/21005 by Kirk Jackson.
Diffstat (limited to 'www/opera6')
-rw-r--r--www/opera6/files/opera.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/opera6/files/opera.sh b/www/opera6/files/opera.sh
index a2dc3afd3da..e804d1b5f7f 100644
--- a/www/opera6/files/opera.sh
+++ b/www/opera6/files/opera.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-LINUX_KERN_OSREL=`sysctl -n emul.linux.kern.osrelease 2>/dev/null`
+LINUX_KERN_OSREL=`/sbin/sysctl -n emul.linux.kern.osrelease 2>/dev/null`
if [ -z "$LINUX_KERN_OSREL" -o "$LINUX_KERN_OSREL" = "2.0.38" ]
then
OPERADIR=$HOME/.opera
@@ -21,4 +21,5 @@ then
done
fi
+unset LD_LIBRARY_PATH
exec @EMULDIR@/bin/bash /usr/bin/opera "$@"