Commit Graph

41 Commits

Author SHA1 Message Date
thorpej
65412a2710 Implement expansion of special "magic" strings in symlinks into
system-specific values.  Submitted by Chris Demetriou in Nov 1995 (!)
in PR kern/1781, modified only slighly by me.

This is enabled on a per-mount basis with the MNT_MAGICLINKS mount
flag.  It can be enabled at mountroot() time by building the kernel
with the ROOTFS_MAGICLINKS option.

The following magic strings are supported by the implementation:

	@machine	value of MACHINE for the system
	@machine_arch	value of MACHINE_ARCH for the system
	@hostname	the system host name, as set with sethostname()
	@domainname	the system domain name, as set with setdomainname()
	@kernel_ident	the kernel config file name
	@osrelease	the releaes number of the OS
	@ostype		the name of the OS (always "NetBSD" for NetBSD)

Example usage:

	mkdir /arch/i386/bin
	mkdir /arch/sparc/bin
	ln -s /arch/@machine_arch/bin /bin
2005-06-23 00:30:28 +00:00
christos
16b557a02b Simplify the awk to print the copyright, by using printf instead of print. 2005-02-13 09:13:04 +00:00
christos
983359fdd3 put back the notyet around the note section; the bfd fix is non-trivial. 2004-05-23 21:11:01 +00:00
christos
28fc1ac65d Enable notes section now that we added header space on the i386. Other
platforms might want to do the same.
2004-05-22 22:07:33 +00:00
lukem
7bb9d6c875 Store the copyright text in conf/copyright, and use conf/newvers.sh
to generate the appropriate  const char copyright[] = "...";
statement instead of hard coding it into kern/init_main.c.
Idea from Simon Burge.
2004-01-05 03:33:06 +00:00
lukem
1fa9c076ee Use a shell variable instead of a cpp #define to provide the full
version string; it's more consistent.
2003-10-15 01:28:49 +00:00
christos
bd5d984311 Check for file existance, not readability. Remove extra touch. 2003-10-14 16:59:54 +00:00
lukem
5ab4225f2d assign the variables on separate lines; makes it easier to read and
easier to change one locally with minimal cvs merge issues
2003-10-14 14:23:10 +00:00
lukem
6fc70a0f8c clean up the method to initialize sccs[] and version[] to remove
unnecessary duplication in the source
2003-10-14 06:46:57 +00:00
christos
924acc6389 simplify the script, and add a disabled netbsd note for now. 2003-03-02 22:17:30 +00:00
thorpej
424346ba85 Const'ify string constants. 2000-07-14 07:14:03 +00:00
hubertf
e8c0c6183d If config(8) left a "ident" file (from the "ident" command), set the
kernel id from the contents of that file.
2000-01-23 23:39:19 +00:00
itohy
8fb18ac4cf Escape SCCS marker so as not to confuse what(1). 1999-02-17 08:13:12 +00:00
cjs
269cb58003 Remove the sccs[] hack (which has broken twice now) and just make sccs[]
and version[] separate strings. (Other alternative hacks proposed may also
break in the future.) We don't make version a pointer into the sccs string,
because that would require changing programs that kvm_read() it, and break
backward compatability.
1999-02-02 19:40:47 +00:00
lukem
8e6617f5d8 Implement method to store release information in one location; it's
generated by `osrelease.sh`. If an argument of "-s" is given, print
the "short" form (e.g, "12E"), otherwise print the long (e.g, "1.2E").
Take advantage of this in newvers.sh.
1997-05-10 15:40:09 +00:00
mycroft
0ecc9cdac1 Update to 1.2E. 1997-05-08 11:40:16 +00:00
is
07b064e02e New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
thorpej
bcdef359ef Fairly major kernel change went in today; bump the version to 1.2C. 1997-01-31 09:28:05 +00:00
thorpej
e50a1d048c Bump NetBSD version to 1.2B (kernel interface changed) 1996-10-25 20:13:16 +00:00
jtc
64157258f9 updated for 1.2A (post 1.2) 1996-05-25 21:59:38 +00:00
thorpej
7f80deb0ad Bump version to NetBSD 1.1B. 1996-03-17 01:01:45 +00:00
pk
eb22b59e44 Pad `sccs[]' to make it 8 bytes long, to make it work on more architectures.
(PR#1690).
1996-01-05 15:06:45 +00:00
thorpej
c6d3b96520 Change "OS release" to 1.1A. 1995-12-12 02:05:14 +00:00
jtc
0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
cgd
2e82a93f57 the trunk now carries the revision 1.0A (i.e. the first revision after
1.0), because the release branch is 1.0, and when the trunk again becomes
-current, it's 1.0A.
1994-07-10 22:26:30 +00:00
cgd
cf92afd66e New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD' 1994-06-29 06:29:24 +00:00
cgd
89e331dcad new standard, minimally intrusive ID format 1994-06-27 19:40:57 +00:00
mycroft
428590d3e2 B --> C 1994-06-08 11:47:03 +00:00
cgd
031743a505 make release number contain only the release number, and appropriate fixups.
The previous behaviour was actually the result of some too-literal copying,
when bringing in the new newvers.sh from 4.4-Lite.
1994-05-23 04:10:54 +00:00
cgd
a0a7429482 lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.
1994-05-05 05:35:42 +00:00
mycroft
d8ce42f0ed From magnum branch:
Intuit kernel ident from directory name, as config.new does not support `ident'
commands.
1993-12-18 04:21:35 +00:00
cgd
4c54aa0ce8 yup, that's right folks, we're now working on 0.9a... 1993-08-26 10:59:16 +00:00
cgd
b26f7e1d0f kernvers="NetBSD 0.9" 1993-07-19 16:02:09 +00:00
cgd
e3b4331d6e fixed rcsids and cleaned up headers 1993-05-20 03:29:36 +00:00
cgd
f861a5451f version 0.8a -- gonna export some new kernels... 1993-04-28 23:21:03 +00:00
deraadt
2dca7e3bdb 386bsd 0.1 --> netbsd 0.8 1993-04-27 05:39:38 +00:00
cgd
086e97be7e converted date in kernel version to standard date output format. 1993-04-03 03:53:00 +00:00
cgd
fe7517c914 added various things, to make kernel version info more useful 1993-04-03 01:40:55 +00:00
cgd
5a8087833a fixed stupid extra space in kernel name 1993-03-23 08:59:30 +00:00
cgd
6c85542377 added kernel ident to version string 1993-03-23 08:21:22 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00