diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y index 1ff9c0055a66..37cc9df155c0 100644 --- a/usr.sbin/config/config.y +++ b/usr.sbin/config/config.y @@ -11,6 +11,7 @@ %token BUS %token CAM %token COMMA +%token CONFIG %token CONFLICTS %token CONTROLLER %token CPU @@ -175,9 +176,36 @@ Config_spec: | IDENT ID = { ident = $2; } | + System_spec + | MAXUSERS NUMBER = { maxusers = $2; }; +System_spec: + CONFIG System_id System_parameter_list + = { warnx("line %d: root/dump/swap specifications obsolete", yyline);} + | + CONFIG System_id + ; + +System_id: + Save_id + = { + struct opt *op = (struct opt *)malloc(sizeof (struct opt)); + memset(op, 0, sizeof(*op)); + op->op_name = ns("KERNEL"); + op->op_ownfile = 0; + op->op_next = mkopt; + op->op_value = $1; + op->op_line = yyline + 1; + mkopt = op; + }; + +System_parameter_list: + System_parameter_list ID + | ID + ; + device_name: Save_id = { $$ = $1; } diff --git a/usr.sbin/config/lang.l b/usr.sbin/config/lang.l index f1061f664e7b..4368695dca1e 100644 --- a/usr.sbin/config/lang.l +++ b/usr.sbin/config/lang.l @@ -57,6 +57,7 @@ struct kt { { "bus", BUS }, { "cam", CAM }, /* XXX going away */ { "conflicts", CONFLICTS }, + { "config", CONFIG }, { "controller", CONTROLLER }, { "cpu", CPU }, { "device", DEVICE },