#!/bin/sh
# Copyright 2011 Paul Parsons
# Distributed under the terms of the GNU General Public License v3 or later

depend="base"
service --depend ${depend} || exit 1

case $1 in
"start")
	modprobe pcnet_cs || exit 1

	daemon --start --label=$0.dhcp /usr/sbin/udhcpc -f -i eth0
	;;
"stop")
	daemon --stop --label=$0.dhcp
	rmmod pcnet_cs 8390
	;;
esac

exit 0
