head 1.11; access; symbols netbsd-10-0-RELEASE:1.11 netbsd-10-0-RC6:1.11 netbsd-10-0-RC5:1.11 netbsd-10-0-RC4:1.11 netbsd-10-0-RC3:1.11 netbsd-10-0-RC2:1.11 netbsd-10-0-RC1:1.11 netbsd-10:1.11.0.6 netbsd-10-base:1.11 netbsd-9-3-RELEASE:1.9 cjep_sun2x-base1:1.11 cjep_sun2x:1.11.0.4 cjep_sun2x-base:1.11 cjep_staticlib_x-base1:1.11 netbsd-9-2-RELEASE:1.9 cjep_staticlib_x:1.11.0.2 cjep_staticlib_x-base:1.11 netbsd-9-1-RELEASE:1.9 phil-wifi-20200421:1.9 phil-wifi-20200411:1.9 is-mlppp:1.9.0.28 is-mlppp-base:1.9 phil-wifi-20200406:1.9 netbsd-8-2-RELEASE:1.9 netbsd-9-0-RELEASE:1.9 netbsd-9-0-RC2:1.9 netbsd-9-0-RC1:1.9 phil-wifi-20191119:1.9 netbsd-9:1.9.0.26 netbsd-9-base:1.9 phil-wifi-20190609:1.9 netbsd-8-1-RELEASE:1.9 netbsd-8-1-RC1:1.9 pgoyette-compat-merge-20190127:1.9 pgoyette-compat-20190127:1.9 pgoyette-compat-20190118:1.9 pgoyette-compat-1226:1.9 pgoyette-compat-1126:1.9 pgoyette-compat-1020:1.9 pgoyette-compat-0930:1.9 pgoyette-compat-0906:1.9 netbsd-7-2-RELEASE:1.9 pgoyette-compat-0728:1.9 netbsd-8-0-RELEASE:1.9 phil-wifi:1.9.0.24 phil-wifi-base:1.9 pgoyette-compat-0625:1.9 netbsd-8-0-RC2:1.9 pgoyette-compat-0521:1.9 pgoyette-compat-0502:1.9 pgoyette-compat-0422:1.9 netbsd-8-0-RC1:1.9 pgoyette-compat-0415:1.9 pgoyette-compat-0407:1.9 pgoyette-compat-0330:1.9 pgoyette-compat-0322:1.9 pgoyette-compat-0315:1.9 netbsd-7-1-2-RELEASE:1.9 pgoyette-compat:1.9.0.22 pgoyette-compat-base:1.9 netbsd-7-1-1-RELEASE:1.9 matt-nb8-mediatek:1.9.0.20 matt-nb8-mediatek-base:1.9 perseant-stdc-iso10646:1.9.0.18 perseant-stdc-iso10646-base:1.9 netbsd-8:1.9.0.16 netbsd-8-base:1.9 prg-localcount2-base3:1.9 prg-localcount2-base2:1.9 prg-localcount2-base1:1.9 prg-localcount2:1.9.0.14 prg-localcount2-base:1.9 pgoyette-localcount-20170426:1.9 bouyer-socketcan-base1:1.9 pgoyette-localcount-20170320:1.9 netbsd-7-1:1.9.0.12 netbsd-7-1-RELEASE:1.9 netbsd-7-1-RC2:1.9 netbsd-7-nhusb-base-20170116:1.9 bouyer-socketcan:1.9.0.10 bouyer-socketcan-base:1.9 pgoyette-localcount-20170107:1.9 netbsd-7-1-RC1:1.9 pgoyette-localcount-20161104:1.9 netbsd-7-0-2-RELEASE:1.9 localcount-20160914:1.9 netbsd-7-nhusb:1.9.0.8 netbsd-7-nhusb-base:1.9 pgoyette-localcount-20160806:1.9 pgoyette-localcount-20160726:1.9 pgoyette-localcount:1.9.0.6 pgoyette-localcount-base:1.9 netbsd-7-0-1-RELEASE:1.9 netbsd-7-0:1.9.0.4 netbsd-7-0-RELEASE:1.9 netbsd-7-0-RC3:1.9 netbsd-7-0-RC2:1.9 netbsd-7-0-RC1:1.9 netbsd-5-2-3-RELEASE:1.8 netbsd-5-1-5-RELEASE:1.8 netbsd-6-0-6-RELEASE:1.8 netbsd-6-1-5-RELEASE:1.8 netbsd-7:1.9.0.2 netbsd-7-base:1.9 yamt-pagecache-base9:1.8 yamt-pagecache-tag8:1.8 netbsd-6-1-4-RELEASE:1.8 netbsd-6-0-5-RELEASE:1.8 tls-earlyentropy:1.8.0.70 tls-earlyentropy-base:1.9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8 riastradh-drm2-base3:1.8 netbsd-6-1-3-RELEASE:1.8 netbsd-6-0-4-RELEASE:1.8 netbsd-5-2-2-RELEASE:1.8 netbsd-5-1-4-RELEASE:1.8 netbsd-6-1-2-RELEASE:1.8 netbsd-6-0-3-RELEASE:1.8 netbsd-5-2-1-RELEASE:1.8 netbsd-5-1-3-RELEASE:1.8 netbsd-6-1-1-RELEASE:1.8 riastradh-drm2-base2:1.8 riastradh-drm2-base1:1.8 riastradh-drm2:1.8.0.62 riastradh-drm2-base:1.8 netbsd-6-1:1.8.0.68 netbsd-6-0-2-RELEASE:1.8 netbsd-6-1-RELEASE:1.8 khorben-n900:1.8.0.66 netbsd-6-1-RC4:1.8 netbsd-6-1-RC3:1.8 agc-symver:1.8.0.64 agc-symver-base:1.8 netbsd-6-1-RC2:1.8 netbsd-6-1-RC1:1.8 yamt-pagecache-base8:1.8 netbsd-5-2:1.8.0.60 netbsd-6-0-1-RELEASE:1.8 yamt-pagecache-base7:1.8 netbsd-5-2-RELEASE:1.8 netbsd-5-2-RC1:1.8 matt-nb6-plus-nbase:1.8 yamt-pagecache-base6:1.8 netbsd-6-0:1.8.0.58 netbsd-6-0-RELEASE:1.8 netbsd-6-0-RC2:1.8 tls-maxphys:1.8.0.56 tls-maxphys-base:1.9 matt-nb6-plus:1.8.0.54 matt-nb6-plus-base:1.8 netbsd-6-0-RC1:1.8 yamt-pagecache-base5:1.8 yamt-pagecache-base4:1.8 netbsd-6:1.8.0.52 netbsd-6-base:1.8 netbsd-5-1-2-RELEASE:1.8 netbsd-5-1-1-RELEASE:1.8 yamt-pagecache-base3:1.8 yamt-pagecache-base2:1.8 yamt-pagecache:1.8.0.50 yamt-pagecache-base:1.8 cherry-xenmp:1.8.0.48 cherry-xenmp-base:1.8 bouyer-quota2-nbase:1.8 bouyer-quota2:1.8.0.46 bouyer-quota2-base:1.8 matt-mips64-premerge-20101231:1.8 matt-nb5-mips64-premerge-20101231:1.8 matt-nb5-pq3:1.8.0.44 matt-nb5-pq3-base:1.8 netbsd-5-1:1.8.0.42 netbsd-5-1-RELEASE:1.8 netbsd-5-1-RC4:1.8 matt-nb5-mips64-k15:1.8 netbsd-5-1-RC3:1.8 netbsd-5-1-RC2:1.8 netbsd-5-1-RC1:1.8 netbsd-5-0-2-RELEASE:1.8 matt-nb5-mips64-premerge-20091211:1.8 matt-premerge-20091211:1.8 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.8 matt-nb4-mips64-k7-u2a-k9b:1.8 matt-nb5-mips64-u1-k1-k5:1.8 matt-nb5-mips64:1.8.0.40 netbsd-5-0-1-RELEASE:1.8 jym-xensuspend-nbase:1.8 netbsd-5-0:1.8.0.38 netbsd-5-0-RELEASE:1.8 netbsd-5-0-RC4:1.8 netbsd-5-0-RC3:1.8 netbsd-5-0-RC2:1.8 jym-xensuspend:1.8.0.36 jym-xensuspend-base:1.8 netbsd-5-0-RC1:1.8 mjf-devfs2-base2:1.8 netbsd-5:1.8.0.34 netbsd-5-base:1.8 matt-mips64-base2:1.8 matt-mips64:1.8.0.32 netbsd-4-0-1-RELEASE:1.8 wrstuden-revivesa-base-3:1.8 wrstuden-revivesa-base-2:1.8 wrstuden-fixsa-newbase:1.8 wrstuden-revivesa-base-1:1.8 yamt-pf42-base4:1.8 yamt-pf42-base3:1.8 hpcarm-cleanup-nbase:1.8 yamt-pf42-baseX:1.8 yamt-pf42-base2:1.8 wrstuden-revivesa:1.8.0.30 wrstuden-revivesa-base:1.8 yamt-pf42:1.8.0.28 yamt-pf42-base:1.8 mjf-devfs2:1.8.0.26 mjf-devfs2-base:1.8 keiichi-mipv6:1.8.0.24 keiichi-mipv6-base:1.8 mjf-devfs:1.8.0.22 mjf-devfs-base:1.8 matt-armv6-nbase:1.8 matt-armv6-prevmlocking:1.8 wrstuden-fixsa-base-1:1.8 netbsd-4-0:1.8.0.20 netbsd-4-0-RELEASE:1.8 cube-autoconf:1.8.0.18 cube-autoconf-base:1.8 netbsd-4-0-RC5:1.8 netbsd-4-0-RC4:1.8 netbsd-4-0-RC3:1.8 netbsd-4-0-RC2:1.8 netbsd-4-0-RC1:1.8 matt-armv6:1.8.0.16 matt-armv6-base:1.8 matt-mips64-base:1.8 hpcarm-cleanup:1.8.0.14 hpcarm-cleanup-base:1.8 netbsd-3-1-1-RELEASE:1.8 netbsd-3-0-3-RELEASE:1.8 wrstuden-fixsa:1.8.0.12 wrstuden-fixsa-base:1.8 abandoned-netbsd-4-base:1.8 abandoned-netbsd-4:1.8.0.6 netbsd-3-1:1.8.0.8 netbsd-3-1-RELEASE:1.8 netbsd-3-0-2-RELEASE:1.8 netbsd-3-1-RC4:1.8 netbsd-3-1-RC3:1.8 netbsd-3-1-RC2:1.8 netbsd-3-1-RC1:1.8 netbsd-4:1.8.0.10 netbsd-4-base:1.8 netbsd-3-0-1-RELEASE:1.8 netbsd-3-0:1.8.0.4 netbsd-3-0-RELEASE:1.8 netbsd-3-0-RC6:1.8 netbsd-3-0-RC5:1.8 netbsd-3-0-RC4:1.8 netbsd-3-0-RC3:1.8 netbsd-3-0-RC2:1.8 netbsd-3-0-RC1:1.8 netbsd-2-0-3-RELEASE:1.7 netbsd-2-1:1.7.0.8 netbsd-2-1-RELEASE:1.7 netbsd-2-1-RC6:1.7 netbsd-2-1-RC5:1.7 netbsd-2-1-RC4:1.7 netbsd-2-1-RC3:1.7 netbsd-2-1-RC2:1.7 netbsd-2-1-RC1:1.7 netbsd-2-0-2-RELEASE:1.7 netbsd-3:1.8.0.2 netbsd-3-base:1.8 netbsd-2-0-1-RELEASE:1.7 netbsd-2:1.7.0.6 netbsd-2-base:1.7 netbsd-2-0-RELEASE:1.7 netbsd-2-0-RC5:1.7 netbsd-2-0-RC4:1.7 netbsd-2-0-RC3:1.7 netbsd-2-0-RC2:1.7 netbsd-2-0-RC1:1.7 netbsd-2-0:1.7.0.4 netbsd-2-0-base:1.7 netbsd-1-6-PATCH002-RELEASE:1.7 netbsd-1-6-PATCH002:1.7 netbsd-1-6-PATCH002-RC4:1.7 netbsd-1-6-PATCH002-RC3:1.7 netbsd-1-6-PATCH002-RC2:1.7 netbsd-1-6-PATCH002-RC1:1.7 netbsd-1-6-PATCH001:1.7 netbsd-1-6-PATCH001-RELEASE:1.7 netbsd-1-6-PATCH001-RC3:1.7 netbsd-1-6-PATCH001-RC2:1.7 netbsd-1-6-PATCH001-RC1:1.7 fvdl_fs64_base:1.7 netbsd-1-6-RELEASE:1.7 netbsd-1-6-RC3:1.7 netbsd-1-6-RC2:1.7 netbsd-1-6-RC1:1.7 netbsd-1-6:1.7.0.2 netbsd-1-6-base:1.7 netbsd-1-5-PATCH003:1.2.4.1 netbsd-1-5-PATCH002:1.2.4.1 netbsd-1-5-PATCH001:1.2.4.1 netbsd-1-5-RELEASE:1.2.4.1 netbsd-1-5-BETA2:1.2.4.1 netbsd-1-5-BETA:1.2.4.1 netbsd-1-5-ALPHA2:1.2.4.1 netbsd-1-5:1.2.0.4 netbsd-1-5-base:1.2 minoura-xpg4dl:1.2.0.2 minoura-xpg4dl-base:1.2 rc-d-2000-03-10:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.11 date 2020.09.08.12.52.18; author martin; state Exp; branches; next 1.10; commitid IL2vGNw0FVFgcfnC; 1.10 date 2020.07.22.16.50.41; author martin; state Exp; branches; next 1.9; commitid ZlFyZCKhX3U036hC; 1.9 date 2014.07.22.17.11.09; author wiz; state Exp; branches; next 1.8; commitid suHlgoA0OoiICoJx; 1.8 date 2004.08.13.18.08.03; author mycroft; state Exp; branches 1.8.56.1 1.8.70.1; next 1.7; 1.7 date 2002.04.29.12.29.53; author lukem; state Exp; branches; next 1.6; 1.6 date 2002.03.27.08.53.42; author lukem; state Exp; branches; next 1.5; 1.5 date 2002.01.31.01.26.06; author lukem; state Exp; branches; next 1.4; 1.4 date 2001.02.28.17.19.42; author lukem; state Exp; branches; next 1.3; 1.3 date 2000.07.26.00.11.49; author lukem; state Exp; branches; next 1.2; 1.2 date 2000.05.13.08.45.07; author lukem; state Exp; branches 1.2.4.1; next 1.1; 1.1 date 2000.03.10.11.53.24; author lukem; state Exp; branches 1.1.1.1; next ; 1.8.56.1 date 2014.08.19.23.45.51; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.8.70.1 date 2014.08.10.06.49.24; author tls; state Exp; branches; next ; commitid L6kRv2THETa8AMLx; 1.2.4.1 date 2000.08.09.19.09.43; author lukem; state Exp; branches; next ; 1.1.1.1 date 2000.03.10.11.53.24; author lukem; state Exp; branches; next ; desc @@ 1.11 log @Rename MOUNTCRITLOCAL to CRITLOCALMOUNTED to avoid a name collision on case insensitive file systems @ text @#!/bin/sh # # $NetBSD: mountcritremote,v 1.10 2020/07/22 16:50:41 martin Exp $ # # PROVIDE: mountcritremote # REQUIRE: NETWORKING root CRITLOCALMOUNTED $_rc_subr_loaded . /etc/rc.subr name="mountcritremote" start_cmd="mountcritremote_start" stop_cmd=":" mountcritremote_start() { # Mount critical file systems that may be `remote'. # (as specified in $critical_filesystems_remote) # This usually includes /usr. # mount_critical_filesystems remote } load_rc_config $name run_rc_command "$1" @ 1.10 log @Split the local disk availability step into two phases to allow scripts that pre-populate parts of the system (e.g. a tmpfs based /var) an easy place to plug in like: # REQUIRE: mountcritlocal # BEFORE: MOUNTCRITLOCAL This also cleans up the existing special handling a bit by separating it into new scripts. All later scripts now depend on MOUNTCRITLOCAL. Discussed on tech-userlevel some time ago. @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.9 2014/07/22 17:11:09 wiz Exp $ d7 1 a7 1 # REQUIRE: NETWORKING root MOUNTCRITLOCAL @ 1.9 log @'file system' for consistency with documentation (instead of 'filesystem'). @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.8 2004/08/13 18:08:03 mycroft Exp $ d7 1 a7 1 # REQUIRE: NETWORKING root mountcritlocal @ 1.8 log @Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this for a speedup by doing: $_rc_subr_loaded . /etc/rc.subr @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.7 2002/04/29 12:29:53 lukem Exp $ d17 1 a17 1 # Mount critical filesystems that may be `remote'. @ 1.8.56.1 log @Rebase to HEAD as of a few days ago. @ text @d3 1 a3 1 # $NetBSD$ d17 1 a17 1 # Mount critical file systems that may be `remote'. @ 1.8.70.1 log @Rebase. @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.9 2014/07/22 17:11:09 wiz Exp $ d17 1 a17 1 # Mount critical file systems that may be `remote'. @ 1.7 log @don't bother warning or supporting obsolete $critical_filesystems_beforenet or $critical_filesystems; postinstall now checks for these @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.6 2002/03/27 08:53:42 lukem Exp $ d9 1 a9 1 . /etc/rc.subr @ 1.6 log @Replace $critical_filesystems_beforenet with $critical_filesystems_local . Replace $critical_filesystems with $critical_filesystems_remote . The new names are now consistent with the type argument that mount_critical_filesystems() is called with, and allows for other types to be easily supported by that function. For backwards compatibility purposes, if the now obsolete variable is defined (even empty), it takes precedence over the new form, and you will be warned. If you want to stop the warnings, update your rc.conf(5) settings! @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.5 2002/01/31 01:26:06 lukem Exp $ a16 9 # If obsolete $critical_filesystems is set, # use that instead of $critical_filesystems_remote. # if [ -n "$critical_filesystems" -o \ "${critical_filesystems-unset}" != "unset" ]; then warn 'Overriding $critical_filesystems_remote with obsolete $critical_filesystems' critical_filesystems_remote=$critical_filesystems fi @ 1.5 log @Rename NETWORK to NETWORKING, to allow rc.d to be on a case insensitive file system (prevents conflict with 'network'). PROVIDE both NETWORKING and NETWORK (the latter for compatibility with 3rd party scripts). @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.4 2001/02/28 17:19:42 lukem Exp $ a10 4 # Mount critical filesystems that may be remote. # (as specified in $critical_filesystems) # This usually includes /usr. # d12 1 a12 1 start_cmd="mount_critical_filesystems remote" d14 19 @ 1.4 log @clarify purposes @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.3 2000/07/26 00:11:49 lukem Exp $ d7 1 a7 1 # REQUIRE: NETWORK root mountcritlocal @ 1.3 log @* add new dummy dependancy `NETWORK' to be REQUIREd by services which need networking to be operational before starting, and use as appropriate. NETWORK depends upon network and dhclient. * move the guts of systemfs into mountcritlocal * replace the dependancy on systemfs with mountcritremote, and remove the former. * SERVERS now also depends upon ppp Notes: * dhclient (and others) needs /var to be a $critical_filesystem_beforenet * dhclient now starts before syslogd (because the latter needs /usr, and /usr might need dhclient to be mounted) Should fix PRs: [install/9853] [bin/10002] [misc/10349] [port-i386/10633] [misc/10641] @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.2 2000/05/13 08:45:07 lukem Exp $ d11 1 a11 1 # mount critical remote filesystems d13 1 @ 1.2 log @Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. This allows us or a user to change the configuration file method in one place - rc.subr - without having to edit all of the rc.d/* files. @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $ d7 1 a7 1 # REQUIRE: root mountcritlocal network d11 3 @ 1.2.4.1 log @pull up the following approved by: thorpej etc/rc.d/DAEMON 1.3 etc/rc.d/LOGIN 1.3 etc/rc.d/NETWORK 1.1 etc/rc.d/SERVERS 1.2 etc/rc.d/cron 1.4 etc/rc.d/dhclient 1.6 etc/rc.d/dmesg 1.4 etc/rc.d/inetd 1.5 etc/rc.d/lkm1 1.3 etc/rc.d/lkm2 1.3 etc/rc.d/lkm3 1.4 etc/rc.d/motd 1.3 etc/rc.d/mountcritlocal 1.3-1.4 etc/rc.d/mountcritremote 1.3 etc/rc.d/mountd 1.7 etc/rc.d/network 1.12 1.14 etc/rc.d/ntpdate 1.4 etc/rc.d/ppp 1.3-1.4 etc/rc.d/pwcheck 1.3 etc/rc.d/rpcbind 1.4 etc/rc.d/sshd 1.3-1.5 etc/rc.d/swap1 1.5 etc/rc.d/swap2 1.4 etc/rc.d/sysdb 1.3-1.4 etc/rc.d/syslogd 1.5-1.6 etc/rc.d/systemfs REMOVE etc/rc.d/virecover 1.3 etc/rc.d/wscons 1.4 etc/rc.d/xdm 1.5 summary: * reword descriptions * add '# KEYWORD: shutdown' to some of these scripts so that only they get run at shutdown time. now, only scripts with the keyword `shutdown' will be run by /etc/rc.shutdown, which speeds up shutdown and makes it more robust * add new dummy dependancy `NETWORK' to be REQUIREd by services which need networking to be operational before starting, and use as appropriate. NETWORK depends upon network and dhclient. * move the guts of systemfs into mountcritlocal * replace the dependancy on systemfs with mountcritremote, and remove the former. * SERVERS now also depends upon ppp * move recreating /var/run/utmp from mountcritlocal (where /var/run is purged but /usr/bin/install is not available) to sysdb. problem noted by Matthias Drochner. * share the same load_rc_config between the lkm* scripts * network: Don't warn that $hostname isn't set if the hostname is already set. * network: reenable stop_cmd now that network doesn't get run at shutdown * add sshd startup script * use "load_rc_config swap" for swap1 and swap2 * syslog requires databases from sysdb which creates /var/run/utmp. Should fix PRs: [install/9853] [bin/10002] [misc/10349] [port-i386/10633] [misc/10641] @ text @d3 1 a3 1 # $NetBSD: mountcritremote,v 1.3 2000/07/26 00:11:49 lukem Exp $ d7 1 a7 1 # REQUIRE: NETWORK root mountcritlocal a10 3 # mount critical remote filesystems # (as specified in $critical_filesystems) # @ 1.1 log @Initial revision @ text @d3 1 a3 1 # $NetBSD$ a9 1 . /etc/rc.conf d15 1 @ 1.1.1.1 log @rc.d scripts derived from /etc/rc @ text @@