#! /bin/sh
# Copyright (c) 1998 S.u.S.E. GmbH Fuerth, Germany.  All rights reserved.
#
# Author: 
# A. Gebhardt <albrecht.gebhardt@uni-klu.ac.at>
# Tilman Mueller-Gerbes <tmg@suse.de>
# /sbin/init.d/quota
#

. /etc/rc.config
test "$START_QUOTA" = yes || exit 0

case "$1" in
    start)
        if [ -x /sbin/quotaon ]
        then
                echo "Turning on quota."
                /sbin/quotaon -avug
        fi

	;;
    stop)
	if [ -x /sbin/quotaoff ]
        then
                echo "Turning off quota."
                /sbin/quotaoff -avug
        fi
        ;;
    *)
	echo "Usage: $0 {start|stop}"
	exit 1
esac

exit 0
