This file is indexed.

/usr/sbin/debian-edu-hd-warn is in debian-edu-config 1.702.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash

# (c) m.herweg@gmx.de
# License: GPL
# Version 0.1   16.7.2003
# Version 0.2   2003-11-04 faj@bzz.no
# $Id: debian-edu-hd-warn 66680 2010-07-20 21:44:51Z pere $


if [ -f /etc/debian-edu/hd-warn.conf ] ; then 
  . /etc/debian-edu/hd-warn.conf 
fi

MSG="$( df -h | grep % | tr -d "%" | cut -c40- | tail -n +2 | while read USE MOUNT ; do 
  LIMIT=$(echo -e "$ALLOW" | grep " $MOUNT$" | awk '{ print $1 }' ) 
  if [ -z "$LIMIT" ] ; then 
    LIMIT=80
  fi
  if [ $USE -gt $LIMIT ] ; then 
    echo "${USE}% ${MOUNT}"
  fi
done)"

if [ -z "${MSG}" ] ; then 
  exit 0
fi

echo -e "${MSG}"

MESSAGE="You may not be able to login because some disk is near full!"

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

case ${LANG} in

de_*)
    MESSAGE="Es ist mögliche, dass Sie sich nicht mehr anmelden können, da ein Laufwerk recht voll ist."
     ;;

no_*|nn_*|nb_*)
    MESSAGE="Det kan hende at du ikke klarer å logge inn fordi noen disker nesten er fulle!"
    ;;
esac

# If X is running, let a message pop up
#  -- Maximilian Wilhelm <max@skolelinux.de>  Thu, 01 Jul 2004 22:10:00 +0200
if [ "${DISPLAY}" ]; then
    xmessage "${MESSAGE}
    ${MSG}
    "
else
    echo ${MESSAGE}
fi