Deleted Added
full compact
quota (78345) quota (98184)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $NetBSD: quota,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $
3# $FreeBSD: head/etc/rc.d/quota 98184 2002-06-13 22:14:37Z gordon $
4#
5
4#
5
6# Enable/Check the quotas (must be after ypbind if using NIS)
7#
8
6# PROVIDE: quota
9# PROVIDE: quota
7# REQUIRE: mountall
10# REQUIRE: mountcritremote
11# BEFORE: DAEMON
12# KEYWORD: FreeBSD
8
9. /etc/rc.subr
10
11name="quota"
13
14. /etc/rc.subr
15
16name="quota"
17rcvar="enable_quotas"
12start_cmd="quota_start"
13stop_cmd="/usr/sbin/quotaoff -a"
14
15quota_start()
16{
18start_cmd="quota_start"
19stop_cmd="/usr/sbin/quotaoff -a"
20
21quota_start()
22{
17 echo -n "Checking quotas:"
18 /usr/sbin/quotacheck -a
19 echo " done."
20 /usr/sbin/quotaon -a
23 if checkyesno check_quotas ; then
24 echo -n 'Checking quotas:'
25 quotacheck -a
26 echo ' done.'
27 fi
28
29 echo -n 'Enabling quotas:'
30 quotaon -a
31 echo ' done.'
21}
22
23load_rc_config $name
24run_rc_command "$1"
32}
33
34load_rc_config $name
35run_rc_command "$1"