-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
thanks for reply.
I find this warings annoying. Can I somehow surpass them?
Well I see that the "dhcpcd -k" command isn't neccessary, but removing it does
not solve my problem. :-/ Could it be connected to the virtual/<whatever>
problem?
Thanks,
EMSPV
- ------ Original Message ------
Sender: Ismael Luceno <[EMAIL PROTECTED]>
Recipient: [email protected]
Date: Sunday 23 July 2006 01:47
Subject: Re: [Initng] Network/DHCP and InitNG
>Eric MSP Veith escribió:
>> I also get some warnings right after /sbin/initng is called by the kernel.
>> The say "service "daemon/portmap" needs service "virtual/net", that could
>> not be found!" But "virtual/net" is provided by net/net.i, which is
>> correctly added to the default runlevel as net/eth0!
>
>The problem is that virtual/net isn't in the DB when InitNG checks
>for it (because it's virtual). So, ignore it.
>
>> - --------------------------------------------------------
>> service net/* {
>> stdall = /dev/null;
>> need = system/bootmisc;
>> use = system/modules system/coldplug daemon/cardmgr
>> virtual/dhcp/${NAME}; provide = virtual/net virtual/net/${NAME};
>> script start = {
>> # Put up the interface
>> [ -d "/etc/conf.d/net/${NAME}" ] || exit 1
>>
>> # Check if this interface should be configured via DHCP
>> [ -d "/etc/conf.d/net/${NAME}/dhcpcd" ] && exit 0
>>
>> IPv4_ADDR=$(< /etc/conf.d/net/${NAME}/ipv4_addr)
>> IPv4_NETMASK=$(< /etc/conf.d/net/${NAME}/ipv4_netmask)
>> IPv4_BROADCAST=$(< /etc/conf.d/net/${NAME}/ipv4_broadcast)
>> /sbin/ifconfig ${NAME} ${IPv4_ADDR} netmask ${IPv4_NETMASK}
>> broadcast ${IPv4_BROADCAST}
>>
>> # Check so its up
>> /sbin/ifconfig ${NAME} | /bin/grep -qe "inet addr" -e "inet6 addr"
>> || exit 1
>> exit 0
>> };
>> script stop = {
>> set -e
>
>InitNG will send TERM signal to dhcpcd, so this isn't necesary:
>> if [ -d "/etc/conf.d/net/${NAME}/dhcpcd" ]
>> then
>> /sbin/dhcpcd -k ${NAME}
>> fi
>>
>> /sbin/ifconfig ${NAME} down
>>
>> exit 0
>> };
>> }
>> - --------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEwrq9MpEdE19y46cRAm30AKDQxQuBa/h/wxMIuR2czw7Cqc09QwCgmv4s
96PgKfjJ0wLSfmjQ4dlTCIc=
=wJZ+
-----END PGP SIGNATURE-----
--
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng