diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-04-11 20:58:10 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-04-11 20:58:10 +0000 |
commit | 2c84dea37d8a4a00520a5ec70a098a0cb88534b5 (patch) | |
tree | 75e3498945556cae4bec2784c1e3c215239e155e /www | |
parent | 1d8cd3ef887fd1a8ec304d1de0715ac0f4951198 (diff) | |
download | pkgsrc-2c84dea37d8a4a00520a5ec70a098a0cb88534b5.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')
-rw-r--r-- | www/opera6/files/opera.sh | 3 |
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 "$@" |