Expand PMF_FN_* macros.
[netbsd-mini2440.git] / etc / rc.d / mountcritlocal
blobb75c07801669470afb63cebed22bb85e05cf07c8
1 #!/bin/sh
3 # $NetBSD: mountcritlocal,v 1.9 2006/11/12 01:22:58 christos Exp $
6 # PROVIDE: mountcritlocal
7 # REQUIRE: fsck
9 $_rc_subr_loaded . /etc/rc.subr
11 name="mountcritlocal"
12 start_cmd="mountcritlocal_start"
13 stop_cmd=":"
15 mountcritlocal_start()
17 # Mount critical filesystems that are `local'
18 # (as specified in $critical_filesystems_local)
19 # This usually includes /var.
21 mount_critical_filesystems local
23 # clean up left-over files.
24 # this could include the cleanup of lock files and /var/run, etc.
26 rm -f /etc/nologin /var/spool/lock/LCK.*
27 (cd /var/run && rm -rf -- *)
30 load_rc_config $name
31 run_rc_command "$1"