#!/bin/sh
if [ -d /etc/0`basename $0` ] ; then
  rm /etc/0whereami
  ln -s 0`basename $0` /etc/0whereami
  modprobe eepro100
  /etc/init.d/networking restart
  ifup lo eth0
## wenn nix hilft route mit Hand setzen
  route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.50.10 eth0
  fping 192.168.50.10
  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
