#!/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
  # pump
  if [ `fping wr-linux01 | grep -c unreachable` -lt 1 ] ; then
    dhclient
    fping wr-linux01
  fi
  ### ist das wirklich ntig mit dem ifup lo ??
  ### --> scheinbar ja sonst braucht der NFS-Server ewig zum starten
  ifup lo
  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
#   /etc/init.d/gdm restart
else
  echo "/etc/0`basename $0` not found.  Something is really wrong"
fi
