[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libc problems



On Sat, 15 May 1999, Gergely Madarasz wrote:

> if [ "$1" != abort-upgrade ] && [ "`uname -s`" = Linux ]
> then
>     # SPARC sun4m requires a recent kernel
>     realarch=`uname -m`
>     if [ "$realarch" = sparc ]
>     then
>         cputype=`egrep '^type.*:.*sun4m' /proc/cpuinfo 2> /dev/null`
>         kernel_ver=`uname -r`
> 
>         if [ "$cputype" != "" ]
> ...
> 
> Why does it exit after the cputype= line ?!?

Ah, got it... if there is no match, egrep returns 1 and the script exits
because of the set -e 

-- 
Madarasz Gergely           gorgo@caesar.elte.hu         gorgo@linux.rulez.org
      It's practically impossible to look at a penguin and feel angry.
          Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
                    HuLUG: http://mlf.linux.rulez.org/


Reply to: