mountcritlocal revision 1.3
1#!/bin/sh
2#
3# $NetBSD: mountcritlocal,v 1.3 2000/07/26 00:11:49 lukem Exp $
4#
5
6# PROVIDE: mountcritlocal
7# REQUIRE: root
8
9. /etc/rc.subr
10
11name="mountcritlocal"
12start_cmd="mountcritlocal_start"
13stop_cmd=":"
14
15mountcritlocal_start()
16{
17	#	mount critical local filesystems
18	#	(as specified in $critical_filesystems_beforenet)
19	#
20	mount_critical_filesystems local
21
22	#	clean up left-over files.
23	#	this could include the cleanup of lock files and /var/run, etc.
24	#
25	rm -f /etc/nologin /var/spool/lock/LCK.* /var/spool/uucp/STST/*
26	(cd /var/run && {
27		rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp;
28	})
29}
30
31load_rc_config $name
32run_rc_command "$1"
33