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
..
2005-02-19 21:57:19 +00:00
2005-01-10 03:11:17 +00:00
2003-08-07 09:44:09 +00:00
2005-02-06 04:40:51 +00:00
2005-02-03 04:39:32 +00:00
2003-12-10 12:06:25 +00:00
2003-08-07 09:44:09 +00:00
2005-02-03 04:39:32 +00:00
2005-02-06 04:38:18 +00:00
2005-02-03 04:39:32 +00:00
1997-07-30 22:53:50 +00:00
2005-04-15 23:46:07 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-03-21 13:25:22 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-05-24 17:36:29 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-04-18 19:47:51 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2004-11-10 04:02:52 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
1999-03-19 22:06:36 +00:00
2005-02-03 04:39:32 +00:00
2004-12-11 06:41:57 +00:00
2005-02-03 04:39:32 +00:00
2005-04-03 20:09:29 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2003-08-07 09:44:09 +00:00
2005-06-23 00:30:28 +00:00
2005-04-03 20:09:29 +00:00
2005-02-03 04:39:32 +00:00
2004-04-28 00:10:52 +00:00
2005-05-15 20:54:41 +00:00
2005-04-18 19:39:45 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-26 21:16:35 +00:00
2005-02-03 04:39:32 +00:00
2004-12-11 06:01:33 +00:00
2005-05-24 17:36:29 +00:00
2003-09-09 22:10:33 +00:00
2003-08-07 09:44:09 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2000-07-07 10:47:06 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-03-22 20:13:42 +00:00
2003-01-21 12:27:11 +00:00
2005-04-15 16:58:13 +00:00
2005-02-03 04:39:32 +00:00
2005-03-22 20:25:31 +00:00
2003-08-07 09:44:09 +00:00
2004-05-20 17:49:32 +00:00
2003-08-07 09:44:09 +00:00
2005-05-25 20:45:38 +00:00
2005-06-11 22:58:42 +00:00
2005-03-13 15:09:50 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2003-08-07 09:44:09 +00:00
2003-08-07 09:44:09 +00:00
2003-08-07 09:44:09 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2003-08-07 09:44:09 +00:00
2003-01-21 17:45:04 +00:00
2005-02-03 04:39:32 +00:00
2005-06-11 22:54:43 +00:00
2005-06-12 19:46:15 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2005-02-03 04:39:32 +00:00
2004-09-13 21:44:54 +00:00
2004-06-06 06:58:50 +00:00
2005-02-03 04:39:32 +00:00
2005-05-15 21:10:52 +00:00
2005-02-03 04:39:32 +00:00
2004-07-13 15:42:03 +00:00