#!/bin/sh
if [ -d /etc/0`basename $0` ] ; then
  /etc/init.d/nfs-kernel-server stop
  rm /etc/0whereami
  ln -s 0`basename $0` /etc/0whereami
  if [ `lsmod | grep -c eepro100` -lt 1 ] ; then
     modprobe eepro100
  fi
  ifup lo eth0
#  /etc/init.d/networking restart
  fping sojus
  if [ -x /etc/0whereami/restartdaemons ] ; then /etc/0whereami/restartdaemons ; fi
  hostname `cat /etc/hostname`
  rm /home/tillea/.0whereami
  ln -s .0`basename $0` /home/tillea/.0whereami
else
  echo "/etc/0`basename $0` not found.  Something is really wrong"
fi
