#! /bin/sh
#
# netbasic	This script is the very first step in setting up
#		network related stuff; it sets up the loopback
#		interface.
#
# Version:	@(#) /etc/init.d/loopback 1.01 26-Oct-1993
#
# Author:	Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#

  # Source function library.
  . /etc/init.d/functions

  # See how we were called.
  case "$1" in
    start)
	# Set up loopback interface.
	echo "Setting up loopback interface"
	/sbin/ifconfig lo localhost
	/sbin/route add localhost
	;;
    stop)
	# Get loopback interface down.
	echo "Shutting down loopback interface."
	/sbin/ifconfig lo down
	;;
    *)
	# Oops someone made a typo.
	echo "Usage: /etc/init.d/loopback {start|stop}"
	exit 1
  esac

  exit 0
