#! /bin/sh
#
# Copyright (c) 1996 SuSE GmbH Nuernberg, Germany.  All rights reserved.
#
# Author: Florian La Roche <florian@suse.de>, 1996
#         Werner Fink <werner@suse.de>, 1996
#         Burchard Steinbild <bs@suse.de>, 1996
#
# /sbin/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
. /etc/rc.config
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#

###
# y2k-Problem-test / correction
year=`date +"%Y"`
if test $year -lt 2000; then
    datum=`date +"%m%d%H%M"`
    # echo "1 Datum: " $datum $year
    year=$[$year+4]
    # echo "2 Datum: " $datum $year
    date $datum$year
    echo "Y2K-Problem, date changed"
else    
    date
    echo "no Y2K-Problem, date o.k."
fi

###
# activate powersave
#/usr/bin/setterm -powersave powerdown   # standby
/usr/bin/setterm -powersave on   # standby

###
# save dmesg
if [ -f /var/log/boot.messages.old -a -f /var/log/boot.messages ] ; then
   rm /var/log/boot.messages.old
fi
if [ -f /var/log/boot.messages ]; then
   mv /var/log/boot.messages /var/log/boot.messages.old
fi
/bin/dmesg > /var/log/boot.messages

###
# run Reminder
#if test -x /usr/local/bin/remind.pl; then
#   /usr/local/bin/remind.pl;
#fi

### /etc/filesystems anlegen
if test ! -e /etc/filesystems; then
   if test -x ./change_fs.pl; then
      ./change_fs.pl
   else 
      echo "/etc/filesystems not found, cannot create it !!!\n"
   fi
fi

###
# end
