[vox-tech] dhcp

Ryan cjg5ehir02 at sneakemail.com
Fri Jul 16 01:26:09 PDT 2004


On Thursday 15 July 2004 10:32 pm, Rick Moen rick-at-linuxmafia.com |lugod| 
wrote:
> Quoting Nick Schmalenberger (nschmalenberger at fastmail.fm):
> > The solution is to edit /sbin/dhclient and change
> > "2.[12345].*)" to "2.[123456].*)"
> >
> > to that problem. When I did that
> > and then ran dhclient, dhclient just sat there and did nothing, and no
> > configuration appeared.
>
> I note that /sbin/dhclient is...
>
>    rick at guido:$ file /sbin/dhclient
>    /sbin/dhclient: ELF 32-bit LSB executable, Intel 80386, version 1
>    (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs),
> stripped
>
> ...an ELF binary.  Which leads me to wonder:  What tool did you use to
> edit it?  (By the way, I hope you kept a copy of the original.)

/sbin/dhclient is just a wrapper on debian stable, if you're using version 2 
of dhclient.

# cat /sbin/dhclient
#!/bin/sh
#
# $Id: dhclient.sh,v 1.1.1.1.2.1 2002/02/11 03:44:26 eparis Exp $
#

# dhclient.sh - a front end shell script that calls dhclient-2.2.x
#       or dhclient-2.0.x depending on the kernel that is currently
#       running.

#       Which version
case `uname -r` in
1.*)
        # Give me a break...
        echo "DHCP requires a 2.x series kernel"
        exit 255
        ;;

2.0.*)
        # 2.0 uses the paramters as passed to us.  Just exec the real McCoy.
        exec /sbin/dhclient-2.0.x -q "$@"
        ;;
2.[12345].*)
        exec /sbin/dhclient-2.2.x -q "$@"
        ;;
*)
        # Huh?
        echo "Unrecognized kernel version"
        exit 255
        ;;
esac

-- 
PGP/GPG Fingerprint: 3B30 C6BE B1C6 9526 7A90  34E7 11DF 44F3 7217 7BC7
On pgp.mit.edu, import with `gpg --keyserver pgp.mit.edu --recv-key 72177BC7`
Also available at http://www.XXXXXXX/~ryan/ryan_at_mother_dot_com.asc


More information about the vox-tech mailing list