Subject: Creating a NetBSD 1.5 rc.d script
To: None <netbsd-users@netbsd.org>
From: Roger Fischer <rogerf1@mac.com>
List: netbsd-users
Date: 02/25/2001 09:41:46
I'm trying to add a script to the /etc/rc.d directory to start up
Netatalk in NetBSD 1.5. I installed the netatalk-asun package
which installed a startup command file in /usr/pkg/etc/rc.d/netatalk.sh.
This is the rc.d file I've come up with so far, but when I run it,
I get the following error message:
./atalk.sh: WARNING: $atalk is not set properly.
Any ideas what I need to do to make this work
(other than just putting a direct call to it in rc.local)?
#!/bin/sh
#
# $Id: atalk.sh,v 1.1 2001/02/25 07:19:22 roger Exp roger $
#
# PROVIDE: atalk
# REQUIRE: NETWORK
. /etc/rc.subr
name="atalk"
rcvar=$name
command="/usr/pkg/etc/rc.d/netatalk.sh"
load_rc_config $name
run_rc_command "$1"
max: {17}