summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-27 05:11:53 +0000
committerpeter <peter@FreeBSD.org>2001-08-27 05:11:53 +0000
commite031b90e2a515850159496b7a6da3b8595780427 (patch)
tree06393996c5f6b3f52eee5b7462bc0a12683ef517 /usr.sbin/config/config.y
parent4892f8428ad2764ed6430b35aeb7d3bb88df4b87 (diff)
downloadFreeBSD-src-e031b90e2a515850159496b7a6da3b8595780427.zip
FreeBSD-src-e031b90e2a515850159496b7a6da3b8595780427.tar.gz
Enable hardwiring of things like tunables from embedded enironments
that do not start from loader(8).
Diffstat (limited to 'usr.sbin/config/config.y')
-rw-r--r--usr.sbin/config/config.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 5f15774..b1f5f2b 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -9,6 +9,7 @@
%token CONFIG
%token CPU
%token DEVICE
+%token ENV
%token EQUALS
%token HINTS
%token IDENT
@@ -75,6 +76,8 @@ static struct device *curp = 0;
struct device *dtab;
char *ident;
+char *env;
+int envmode;
char *hints;
int hintmode;
int yyline;
@@ -145,6 +148,11 @@ Config_spec:
= { maxusers = $2; } |
PROFILE NUMBER
= { profiling = $2; } |
+ ENV ID
+ = {
+ env = $2;
+ envmode = 1;
+ } |
HINTS ID
= {
hints = $2;
OpenPOWER on IntegriCloud