Subject: Re: CVS commit: pkgsrc/net/pxe/files
To: NetBSD Packaging <tech-pkg@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 11/07/2001 19:42:27
[ On Wednesday, November 7, 2001 at 16:40:34 (-0600), Frederick Bruckman wrote: ]
> Subject: Re: CVS commit: pkgsrc/net/pxe/files
>
> It's way simpler to just copy the scripts from ${LOCALBASE}/etc/rc.d/
> and ${X11BASE}/etc/rc.d/ to /etc/rc.d/.
or just make sure all your rc.d directories are on the root filesystem
and then use this variant of the guts of /etc/rc (setting $more_rc_d in
/etc/rc.conf to point to any of your other rc.d directories):
_all_rc_d_files=""
for _rc_d in /etc/rc.d ${more_rc_d} ; do
if [ -d $_rc_d -a ! -h $_rc_d -a ".$(echo ${_rc_d}/*)" != ".${_rc_d}/\*" ]; then
_all_rc_d_files="${_all_rc_d_files} $(echo ${_rc_d}/*)"
fi
done
ordered_rc_d_files=$(rcorder ${_all_rc_d_files})
for _rc_elem in $ordered_rc_d_files; do
$debug_echo run_rc_script $_rc_elem start
done
I've been using this happily and successfully for quite a while now.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>