On Tue, Apr 27, 2010 at 11:51:28PM +0200, Toni Mueller wrote:
> Hi,
> 
> while playing with Nick Bender's auto-install stuff, I hit a problem:
> 
> 
> In src/distrib/i386/common/install.md, I see this code:
> 
> 
> ------------
> NCPU=$(sysctl -n hw.ncpufound)
> 
> ((NCPU > 1)) && { DEFAULTSETS="bsd bsd.rd bsd.mp" ; SANESETS="bsd bsd.mp" ; }
> ------------
> 
> Executing this during install, or from a shell reached after booting
> bsd.rd, yields:
> 
> /install.auto: //install.md[6]: NCPU: not found

ksh vs sh. The install scripts are #!/bin/ksh, not #!/bin/sh.

man ksh will speak of (( ... )). And the above line works fine from my ksh
prompt.

.... Ken

Reply via email to