Check /sbin/plymouthd for arch instead of /proc/$$/exe. /sbin/plymouthd is guaranteed to be there and be the correct arch.

master
Warren Togami 2009-05-20 20:35:08 -04:00
parent 1a1b179a5b
commit d03caf15cc
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
if ldd /proc/$$/exe |grep -q lib64; then
if ldd /sbin/plymouthd |grep -q lib64; then
LIBDIR="/usr/lib64"
else
LIBDIR="/usr/lib"

View File

@ -1,5 +1,5 @@
#!/bin/bash
if ldd /proc/$$/exe |grep -q lib64; then
if ldd /sbin/plymouthd |grep -q lib64; then
LIBDIR="/usr/lib64"
else
LIBDIR="/usr/lib"