#! /bin/sh
#
# network loopback interface
#

source ${INIT_D:-/sbin/init.d}/functions

#/etc/sysconfig contains the host name
source_sysconfig

case "$1" in
  start)
     echo 'Setting up hostname...'
     hostname $HOSTNAME
     evaluate_retval || exit_if_failed
     
     echo 'Bringing up the loopback interface...'
     ifconfig lo 127.0.0.1
     evaluate_retval || exit_if_failed
     ;;
  stop)
     echo 'Bringing down the loopback interface...'
     ifconfig lo down
     evaluate_retval
     ;;
  *)
     exit 1
     ;;
esac
    
exit 0


