The NetBSD Project

CVS log for src/etc/rc.d/smtoff

[BACK] Up to [cvs.NetBSD.org] / src / etc / rc.d

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 8 12:52:18 2020 UTC (3 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Rename MOUNTCRITLOCAL to CRITLOCALMOUNTED to avoid a name collision
on case insensitive file systems

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 22 16:50:41 2020 UTC (3 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

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.

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 13 18:53:10 2019 UTC (4 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Branch point for: phil-wifi, netbsd-8
Changes since 1.3: +1 -10 lines
Diff to previous 1.3 (colored)

Remove comment, since there is no parsing anymore.

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 12 11:55:47 2019 UTC (4 years, 10 months ago) by kre
Branch: MAIN
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored)


I should know better!   Don't rely upon the way the shell implements
pipes.   Skip the "error" printf from GetSmtId() as there is no easy
portable way to avoid it occurring (there are complicated ways) - but
we don't need it, there is no logical difference between "error" and ""
so just use the latter (if we get an ID, good, if there is nothing, then
there is none - saying 'error' does not mean anything.)

Revision 1.2 / (download) - annotate - [select for diffs], Sun May 12 00:24:03 2019 UTC (4 years, 10 months ago) by kre
Branch: MAIN
Changes since 1.1: +37 -29 lines
Diff to previous 1.1 (colored)


Restructure code a little.

Use quoting everywhere possibly useful (always the right way, except
in the few cases where it is wrong...)

Avoid using cut & grep (from /usr/bin) so script could run before /usr
is mounted (pity cpuctl is in /usr/sbin ...).

Use sysctl -n rather than attempting to parse its output.

Revision 1.1 / (download) - annotate - [select for diffs], Sat May 11 19:31:03 2019 UTC (4 years, 10 months ago) by maxv
Branch: MAIN

Add smtoff, an rc.d script that disables Simultaneous Multi-Threading. It
parses the output of cpuctl, and executes "cpuctl offline" for each CPU
that has SmtID!=0.

The default is "smtoff=NO", which means that SMT remains enabled.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>