Subject: Re: The new rc.d stuff...
To: None <current-users@netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: current-users
Date: 03/19/2000 13:48:11
In message <20000318162527.I1199@acheron.middleboro.ma.us>
on Sat, 18 Mar 2000 16:25:27 -0500,
Mason Loring Bliss <mason@acheron.middleboro.ma.us> wrote:
> FWIW, a properly functional Netatalk script is attached.
...
> if [ -f /usr/pkg/bin/nbprgstr ]; then
> /usr/pkg/bin/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:Workstation
> /usr/pkg/bin/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:netatalk
> echo -n ' nbprgstr'
> fi
How about change to:
name=`hostname -s`
if [ -f /usr/pkg/bin/nbprgstr ]; then
/usr/pkg/bin/nbprgstr -p 4 $name:Workstation
/usr/pkg/bin/nbprgstr -p 4 $name:netatalk
echo -n ' nbprgstr'
fi
--
Takahiro Kambe <taca@sky.yamashina.kyoto.jp>