Barry Pederson wrote:


I've been burned by this a fair number of times, wish there was some good way of having things starting from /usr/local/etc/rc.d to have /usr/local/bin and sbin in the path on a consistent basis.

        Barry

Hi,

/etc/profile is the system wide profile for sh shell. So, should you need to do this for all sh scripts ( including /usr/local/etc/rc.d/ scripts), simply add a PATH line to /etc/profile, eg:

PATH=/foo/bar:/bar/baz:$PATH; export PATH

or

PATH=$PATH:/foo/bar:/bar/baz; export PATH

depending on whether you want your additional directories to be searched before or after the default path.

Regards,

Jase.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to