# (c) m.herweg@gmx.de
# License: GPL
# Version 0.3   16.7.2003
# to be called from Xreset-script like this:

#      #xmessage    -timeout 4 "$0 Xreset "
#      XDMDIR=/opt/kde3/share/config/kdm
#
#      # MH ---------------------------------------------------------
#      $XDMDIR/SkolelinuxHdWarn
#      # -------------------------------------------------------------
#      exec sessreg -d -l $DISPLAY $USER







PART=home
HOMP=`df /skole/tjener/home0 |tail -1  | tr -s " " | cut -f 5 -d " " `

echo "HOMP: $HOMP"

MESSAGE="You will not be able to login because the harddisk is full! the administrator or other users have to delet some (big) files or the administrator has to install a bigger harddisk"

# no LANG here :-(
# xmessage LANG $LANG

case $LANG in

"de_DE@euro")
    MESSAGE="Festplatte ist voll!"
     ;;

"no_NO")
    MESSAGE="Disken er full!"
    ;;

esac

if [ "$HOMP" = "100%" ]; then
    echo $MESSAGE
     artsmessage "$MESSAGE (home0)"
fi


ROOTP=`df / | tail -1 | tr -s " " | cut -f 5 -d " " `

if [ "$ROOTP" = "100%" ]; then
    echo $MESSAGE
    artsmessage "$MESSAGE (root)"
fi

CodeSchnipsel/SkolelinuxHdWarn (zuletzt geändert am 2007-12-23 22:48:34 durch localhost)