On Fri, 30 Jan 2015 12:26:49 +0300, Oleg wrote:

> I need to have some ip policy rules at system startup which isn't
> depend on any interface. In debian i do this
> through /etc/network/interfaces - i add needed rules as post-up actions
> to lo interface.
> 
> In gentoo i've made postup() in /etc/conf.d/net:
> 
> postup()
> {
>         if [ "${IFACE}" = "lo" ]; then
[snip]
>         fi
>         return 0;
> }
> 
> and done:
> 
> rc-update add net.lo default
> 
> Is this the right way to do this?

If you want those commands run when lo comes up, yes.


-- 
Neil Bothwick

"I need your clothes, your boots, and your tagline!"

Attachment: pgpo9pEFnZL9u.pgp
Description: OpenPGP digital signature

Reply via email to