aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/config/config.y
diff options
context:
space:
mode:
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 5f1577471ac5..b1f5f2b47e5d 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;