l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2004 Jul 16 08:25

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] dhcp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] dhcp



On Thursday 15 July 2004 10:32 pm, Rick Moen rick-at-linuxmafia.com |lugod| 
wrote:
> Quoting Nick Schmalenberger (nschmalenberger@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@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
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!