Browse Source

Make quotas optional; wedged into netstart for the time being.

/etc/rc.conf, anyone?
OPENBSD_2_2
downsj 27 years ago
parent
commit
3abe94d580
2 changed files with 9 additions and 6 deletions
  1. +2
    -1
      src/etc/netstart
  2. +7
    -5
      src/etc/rc

+ 2
- 1
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: netstart,v 1.25 1997/07/30 21:35:15 deraadt Exp $
# $OpenBSD: netstart,v 1.26 1997/07/31 02:23:46 downsj Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags=-q
@ -25,6 +25,7 @@ nat=NO
portmap=YES # almost always needed
inetd=YES # almost always needed
lpd=NO # printing daemons
check_quotas=YES # NO may be desireable in some YP environments
# miscellaneous other flags
# only used if the appropriate server is marked YES above


+ 7
- 5
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.40 1997/07/25 00:06:02 provos Exp $
# $OpenBSD: rc,v 1.41 1997/07/31 02:23:45 downsj Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -192,10 +192,12 @@ if [ -d /var/crash ]; then
savecore /var/crash
fi
echo -n 'checking quotas:'
quotacheck -a
echo ' done.'
quotaon -a
if [ "X${check_quotas}" = X"YES" ]; then
echo -n 'checking quotas:'
quotacheck -a
echo ' done.'
quotaon -a
fi
# build ps databases
echo 'building databases...'


Loading…
Cancel
Save