aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rcS.d/200-quota.sh
blob: bc7ee7581d6de2cd7bd0fa05e0a044ce11619cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
[[ $(type -t strstr) = "function" ]] || . /etc/init.d/functions
[[ $cmdline ]] || cmdline=$(cat /proc/cmdline)

if [ -x /sbin/quotacheck ] && { strstr "$cmdline" forcequotacheck || [ -f /forcequotacheck ]; } ; then
	action $"Checking local filesystem quotas: " /sbin/quotacheck -anug
fi

if [ -x /sbin/quotaon ]; then
    action $"Enabling local filesystem quotas: " /sbin/quotaon -aug
fi
: