ipv6_addrs_IF aliases in rc.conf(5)

Jilles Tjoelker jilles at stack.nl
Thu Dec 20 13:27:51 UTC 2012


On Thu, Dec 20, 2012 at 01:04:34PM +0200, Kimmo Paasiala wrote:
> A question related to this for those who have been doing work on the
> rc(8) scripts. Can I assume that /usr/bin is available when
> network.subr functions are used? Doing calculations on hexadecimal
> numbers is going to be very awkward if I can't use for example bc(1).

You cannot assume that /usr/bin is available when setting up the
network. It may be that /usr is mounted via NFS.

You can use hexadecimal numbers (prefixed with 0x) in $((...))
expressions. In FreeBSD 9.0 or newer, sh has a printf builtin you can
use; in older versions you can use hexdigit and hexprint from
network.subr.

-- 
Jilles Tjoelker


More information about the freebsd-stable mailing list