[debian-edu-commits] debian-edu/ 01/01: Drop undocumented script debian-edu-hd-warn which is much better replaced with munin or other monitoring. The script was also not run from cron.

Holger Levsen holger at layer-acht.org
Sun Jul 17 18:28:05 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository debian-edu-config.

commit 84e06a5d058d4c89ea9ad89fd2708cb1c2cbb773
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Jul 17 20:26:50 2016 +0200

    Drop undocumented script debian-edu-hd-warn which is much better replaced with munin or other monitoring. The script was also not run from cron.
---
 Makefile                    |  3 ---
 debian/changelog            |  2 ++
 etc/debian-edu/hd-warn.conf |  6 -----
 sbin/debian-edu-hd-warn     | 54 ---------------------------------------------
 4 files changed, 2 insertions(+), 63 deletions(-)

diff --git a/Makefile b/Makefile
index 35afdbe..4911c68 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,6 @@ PROGS = \
 
 SPROGS = cfengine-debian-edu \
 	debian-edu-fsautoresize \
-	debian-edu-hd-warn \
-	debian-edu-hwsetup \
 	debian-edu-ltsp \
 	debian-edu-ltsp-audiodivert \
 	debian-edu-nscd-netgroup-cache \
@@ -94,7 +92,6 @@ SYSCONFFILES = \
 	X11/Xsession.d/09debian-edu-missing-home \
 	X11/Xsession.d/10debian-edu-one-login-per-host \
 	desktop-profiles/debian-edu-config.listing \
-	debian-edu/hd-warn.conf \
 	debian-edu/nightkill.conf \
 	default/munin-node \
 	default/ldap2zone \
diff --git a/debian/changelog b/debian/changelog
index fce7058..4473675 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,8 @@ debian-edu-config (1.906) UNRELEASED; urgency=medium
   * Cleanup postinst, preinst and prerm scripts which pre-jessie code.
   * Remove /var/lib/maildirs from binary package and code related to it.
     (Closes: #801776)
+  * Drop undocumented script debian-edu-hd-warn which is much better replaced
+    with munin or other monitoring. The script was also not run from cron.
 
  -- Mike Gabriel <sunweaver at debian.org>  Thu, 07 Jul 2016 12:01:08 +0200
 
diff --git a/etc/debian-edu/hd-warn.conf b/etc/debian-edu/hd-warn.conf
deleted file mode 100644
index 2d70197..0000000
--- a/etc/debian-edu/hd-warn.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-# Config file for skolelinux-hd-warn
-# $Id$ 
-
-ALLOW="
-90 /usr
-"
diff --git a/sbin/debian-edu-hd-warn b/sbin/debian-edu-hd-warn
deleted file mode 100755
index 025fcd3..0000000
--- a/sbin/debian-edu-hd-warn
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-
-# (c) m.herweg at gmx.de
-# License: GPL
-# Version 0.1   16.7.2003
-# Version 0.2   2003-11-04 faj at bzz.no
-# $Id$
-
-
-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 at skolelinux.de>  Thu, 01 Jul 2004 22:10:00 +0200
-if [ "${DISPLAY}" ]; then
-    xmessage "${MESSAGE}
-    ${MSG}
-    "
-else
-    echo ${MESSAGE}
-fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list