summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-03-17 04:00:04 +0000
committerbillf <billf@FreeBSD.org>1999-03-17 04:00:04 +0000
commit544adda3ecf0eb5f9bbe85bada85b8c67c896618 (patch)
tree6f8422e456f0f09bcbdacf2e071d7fbc3a724f06 /etc/rc
parentc4dc16bbe80ed90b1cff86bf9eb18bb30bcf21f1 (diff)
downloadFreeBSD-src-544adda3ecf0eb5f9bbe85bada85b8c67c896618.zip
FreeBSD-src-544adda3ecf0eb5f9bbe85bada85b8c67c896618.tar.gz
Split check_quotas into check_quotas and enable_quotas
enable_quotas - use quotas on your system check_quotas - check for violations on startup By assuming that a system was neat and without violation before it booted we can skip a long (and at that point needless) process. Submitted by: Alex Perel <veers@disturbed.net>
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc21
1 files changed, 14 insertions, 7 deletions
diff --git a/etc/rc b/etc/rc
index 309eb30..69e0c7f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.181 1999/03/14 03:20:22 des Exp $
+# $Id: rc,v 1.182 1999/03/14 20:26:39 des Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -233,12 +233,19 @@ if [ -n "$network_pass1_done" ]; then
network_pass2
fi
-# Check the quotas (must be after ypbind if using NIS)
-if [ "X${check_quotas}" = X"YES" ]; then
- echo -n 'checking quotas:'
- quotacheck -a
- echo ' done.'
- quotaon -a
+# Enable/Check the quotas (must be after ypbind if using NIS)
+if [ "X${enable_quotas}" = X"YES" ]; then
+
+ # Only check quotas if they have been previously enabled, and requested
+ if [ "X${check_quotas}" = X"YES" ]; then
+ echo -n 'checking quotas:'
+ quotacheck -a
+ echo ' done.'
+ fi
+
+ echo -n 'enabling quotas:'
+ quotaon -a
+ echo ' done.'
fi
if [ -n "$network_pass2_done" ]; then
OpenPOWER on IntegriCloud