Subject: Re: Trouble with rc.local
To: None <rogerf1@mac.com>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-users
Date: 01/21/2001 09:24:09
Hi.

In message <l03102800b68fd7e06a1b@[192.168.0.4]>
	on Sat, 20 Jan 2001 16:09:56 -0800,
	Roger Fischer <rogerf1@mac.com> wrote:
> I put a couple of lines in my /etc/rc.local script to start up
> netatalk.  but I'm getting a weird error:
> 	[: missing ]
...
> if [ -f /usr/pkg/etc/rc.d/netatalk.sh]; then
It's simply syntax problem. Since '[' is really test(1) and not
sh(1)'s if syntax.  You should write as bellow:

 [ -f /usr/pkg/etc/rc.d/netatalk.sh ]; then

If test(1) invoked as '[', it need ']' as last argument.  So space
before ']' is significant.

Cheers.

--
Takahiro Kambe <taca@sky.yamashina.kyoto.jp>