Re: preserving l2tp
Niv Wiser
Sun Jan 02 16:55:32 2011
ok, I didnt notice the there was a dhcpcd.conf man. now I am trying to
assemble it:
I want it to discover eth0 and ppp0 which are connected to the WAN , so
I banish the others:
denyinterfaces eth1 wlan2 tap0 br0
but when I try to run this from the command line, I get:
# pkill dhcp
# /sbin/dhcpcd
dhcpcd[9643]: version 5.2.9 starting
dhcpcd[9643]: eth0: rebinding lease of <IP address>
dhcpcd[9643]: eth0: acknowledged <IP address> from <ISP server>
dhcpcd[9643]: eth0: checking for <IP address>
dhcpcd[9643]: eth0: leased <IP address> for 85962 seconds
dhcpcd: eth0: MTU set to 576
/sbin/rc-service: invalid option -- 'D'
Usage: rc-service [options]
Options: [e:ilr:Chqv]
-e, --exists <arg> tests if the service exists or not
-i, --ifexists if the service exsits then run the
command
-l, --list list all available services
-r, --resolve <arg> resolve the service name to an init
script
-h, --help Display this help output
-C, --nocolor Disable color output
-v, --verbose Run verbosely
-q, --quiet Run quietly
/sbin/rc-service: invalid option -- 'D'
Usage: rc-service [options]
Options: [e:ilr:Chqv]
-e, --exists <arg> tests if the service exists or not
-i, --ifexists if the service exsits then run the
command
-l, --list list all available services
-r, --resolve <arg> resolve the service name to an init
script
-h, --help Display this help output
-C, --nocolor Disable color output
-v, --verbose Run verbosely
-q, --quiet Run quietly
dhcpcd[9643]: forked to background, child pid 9735
hmm, why is it adding -D :
in /lib/dhcpcd/dhcpcd-run-hooks line 156:
# Send a command to a system service
service_cmd()
{
/sbin/rc-service $1 -- -D $2
}
is this right?
Archive administrator: postmaster@marples.name