#!/bin/sh
#
# Start or stop 'whereami'
#
# Andreas Tille <tille@debian.org>
#
# Only the 'start' case is actually interesting at this point

test -x /usr/sbin/whereami || exit 0

case "$1" in
    start)
	echo -n "Starting dhcp-client: "
	if [ -x /sbin/dhclient ] ; then
	    /sbin/dhclient
	    echo "."	
	else
	    echo /sbin/dhclient not found.
	fi
	echo -n "Avoid trouble with localhost ... "
	ifup lo
	echo .
    ;;

    stop)
    ;;

    restart)
    ;;
    
    force-reload)
    ;;


    *)
	echo "Usage: /etc/init.d/whereami {start|stop|restart|force-reload}" >&2
	exit 1
    ;;
esac

exit 0
