#!/bin/csh -f # # This script sets the quota for a uid on a filesystem. set dev=$1 # Checking for /etc/enforce_quota is transitional code and should be # removed when the Moira database has an accurate understanding of what # everyone's quotas are. if ( -f /etc/enforce_quota ) then while (1) # set args = $< will NOT work. $< will be treated as a single word set args = `echo $<` if (${#args} != 2) break set uid = $args[1] set quota = $args[2] setquota $dev $uid $quota end endif exit 0 # # $Source: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/install_quotas,v $ # $Header: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/install_quotas,v 1.4 1998-01-07 17:13:18 danw Exp $ #