#!/bin/sh -

# dhcpd.sh - a front end shell script that calls dhcpd-2.2.x
#	or dhcpd-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 kernel 2.x"
	exit 255
	;;

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