[pkg-dhcp-devel] Bug#793064: Bug#793064: syntax error in dhclient-script
Axel Beckert
abe at debian.org
Tue Jul 21 06:56:20 UTC 2015
Hi,
Andrew Pollock wrote:
> On Mon, Jul 20, 2015 at 11:07:30PM -0400, Celejar wrote:
> > On Tue, 21 Jul 2015 12:25:29 +1000
> > Andrew Pollock <apollock at debian.org> wrote:
> > > > This might be something in resolveconf. dhclient-script has no =: operators.
> > >
> > > Yeah line 7 of the main script is a comment. Check around line 7 in all your
> > > hooks, and let us know so we can reassign this to the right package.
> >
> > Sorry, I understand very little of shell scripting. Can you tell me
> > exactly what to look for? I think I checked everything
> > under /etc/dhcp/dhclient-[enter|exit]-hooks/ for any occurrences of
> > =:, but couldn't find any.
>
> You're looking in the right place. It may not be =:, it may just be an =
> operator where one of the operands isn't resolving to a value as intended.
> Look at line 7 with a few lines for margin of error in all of those hooks.
One of these lines from
resolvconf-1.76.1/etc/dhcp/dhclient-enter-hooks.d/resolvconf look
promising for this kind of issue:
28 if [ "$new_domain_name_servers" ] && [ "$new_domain_name" ] ; then
32 if [ "$new_domain_name_servers" ] && [ "$new_domain_search" ] ; then
40 [ ! "$interface" ] || echo -n "$R" | /sbin/resolvconf -a "${interface}.dhclient"
One possibility I can imagine to cause such an issue would be if the
DHCP server gives out strange values for either the domain name server
list or the domains itself.
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
More information about the pkg-dhcp-devel
mailing list