#!/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
