#!/bin/bash
# Squota - Screwed Quota		Copyright (c) 1996	Gary Barrueto
#=============================================================================
# HQ, FSLIMIT and WHATDIR is the only varibles you can modify
#=============================================================================
# so users can check their daily quota, the following should be added to
# /etc/profile :
# /usr/local/bin/Squotack
#=============================================================================
# HQ - where Squota resides
#=============================================================================

HQ=/var/adm/Squota

#=============================================================================
# $FSLIMIT is the # of megabytes you allow.. 
# Future release of this script will calculate $ due if over $FSLIMIT (average)
#=============================================================================

FSLIMIT=5

#=============================================================================
# $WHATDIR is where user homes reside
# you must have an entry in /etc/passwd as a defined home dir for a user
# since I use '~' to "cd" into directories.
#=============================================================================

WHATDIR=/home

#=============================================================================
# There is no need to edit below this line....
#=============================================================================
# $MON is the suffix of each file, this chages to Abbrev. of each month
#=============================================================================
MON=`date +%b`
# $DAY is the # of days to divide by to get average
DAY=`date +%d`
# This script needs a variable set it zero
EMPTY=0
# $PULENGTH sets # of users...
PULENGTH=`echo \`wc -l $HQ/quota.users\` | cut -d" " -f1`
