If this is called from sysinit and sysinit wit for it it works fine:
I.E.
if [ -x /etc/system/netstart.myhost ]; then
/etc/system/netstart.myhost
fi
However if I load this script in the background it fails to configure
the interfaces.
if [ -x /etc/system/netstart.myhost ]; then
/etc/system/netstart.myhost &
fi
It’s as if io-net can not compete with other processes while
initializing. How can I make this work?
BC > I have a netstart.myhost script that is called from my sysinit script.
BC > It looks something like this:
BC > io-net -ptcpip -pqnet -dspeedo
BC > /usr/sbin/if-up -r20 -p en0
BC > /usr/sbin/if-up -r20 -p en1
BC > ifconfig en0 192.168.1.222
BC > ifconfig en1 192.168.2.222
BC > route add default 192.168.1.1
BC > If this is called from sysinit and sysinit wit for it it works fine:
^^^
waits
BC > I.E.
BC > if [ -x /etc/system/netstart.myhost ]; then
BC > /etc/system/netstart.myhost
BC > fi
BC > However if I load this script in the background it fails to configure
BC > the interfaces.
BC > if [ -x /etc/system/netstart.myhost ]; then
BC > /etc/system/netstart.myhost &
BC > fi
BC > It’s as if io-net can not compete with other processes while
BC > initializing. How can I make this work?
If this is called from sysinit and sysinit wit for it it works fine:
I.E.
if [ -x /etc/system/netstart.myhost ]; then
/etc/system/netstart.myhost
fi
However if I load this script in the background it fails to configure
the interfaces.
if [ -x /etc/system/netstart.myhost ]; then
/etc/system/netstart.myhost &
fi
It’s as if io-net can not compete with other processes while
initializing. How can I make this work?