#!/bin/sh
if [ -d /etc/0`basename $0` ] ; then
  rm /etc/0whereami
  ln -s 0`basename $0` /etc/0whereami
  /etc/init.d/networking restart
  ## eventuell aber nur stop!!
  ## /etc/init.d/networking stop
  ### ist das wirklich nötig mit dem ifup lo ??  -> scheinbar ja
  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
else
  echo "/etc/0`basename $0` not found.  Something is really wrong"
fi

