Re: shell problems with %pre

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

 



On Mon, 24 Feb 2003, Derek Vadala wrote:

>I've tried several variations of line 5 to no avail. Suggestions
>appreciated. I think I'm just missing basic info on which shell runs
>during the installation process, that way I could look up the correct
>syntaxes.

I'd guess bash, but that's just a guess. "env > /tmp/shellclues" should
give you enough to work it out.

You could rewrite your script as:

numdisks=`grep -cw 'sd$' /proc/devices`


Cheers,

Phil





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux