#!/bin/sh #---------------------------------------------------------------------------------------- # /etc/init.d/quotacheck - quotacheck script for quota # # Creation: 2004-01-01 jb # Last Update: $Id$ # # Copyright (c) 2004-2008 Jens Berger, jberger(at)gmx(dot)net # Copyright (c) 2012-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------------------- quotacheck=/usr/sbin/quotacheck quota_needs_reboot=/var/lib/quota/quota_needs_reboot # read functions . /etc/init.d/functions case ${1} in start) if [ -e ${quota_needs_reboot} ] then rm -f ${quota_needs_reboot} fi boot_mesg " * Checking non-XFS disk quotas. This may take some time ..." # Remember, XFS filesystem do not need quotacheck, this is done internally by XFS. ${quotacheck} -aug >/dev/null 2>&1 evaluate_retval ;; esac