On Mon, Sep 23, 2013 at 2:27 PM, Reuti <[email protected]> wrote:
> Ups, not `uniq` - the lines aren't identical. Better pipe to: head -n 1
Close ... I had to do a tail -n 1 but when putting togehter libc_version
Total edits here around line 230 - seems to continue to work fine on
RHEL/CentOS and now works on Ubuntu. Will see about install now :
case $lxmachine in
amd64)
# alan begin
if [ -f /lib64/libc.so.6 ]
then
libc_string=`strings /lib64/libc.so.6 | grep "GNU C Library"`
elif [ -e /lib/x86_64-linux-gnu/libc.so.6 ]
then
libc_string=`strings /lib/x86_64-linux-gnu/libc.so.6 | grep
"GNU C Library" | head -n 1`
fi
# alan end - original below
# libc_string=`strings /lib/x86_64-linux-gnu/libc.so.6 | grep
"GNU C Library"`
;;
ia64)
libc_string=`strings /lib/libc.so.6.1 | grep "GNU C Library"`
;;
*)
libc_string=`strings /lib/libc.so.6 | grep "GNU C Library"`
;;
esac
# retrieving libc version failed
if [ $? -ne 0 ]; then
unsupported="UNSUPPORTED-"
lxrelease="${lxrelease}-GLIBC"
else
# alan
# libc_version=`echo $libc_string | tr ' ,' '\n' | grep "2\."
| cut -f 2 -d "." | tail -n 1`
libc_version=`echo $libc_string | tr ' ,' '\n' | grep "2\." |
cut -f 2 -d "." | tail -n 1`
--
“Don't eat anything you've ever seen advertised on TV”
- Michael Pollan, author of "In Defense of Food"
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users