xfree86/parser: use 'kbd' driver when 'keyboard' specified

Now that we've completely ditched the old driver, we should probably make a
best-effort attempt to keep configs working.
This commit is contained in:
Daniel Stone 2006-08-25 12:43:17 +03:00 committed by Daniel Stone
parent 7c4167f0d6
commit d6f36bd280

View File

@ -102,7 +102,10 @@ xf86parseInputSection (void)
case DRIVER:
if (xf86getSubToken (&(ptr->inp_comment)) != STRING)
Error (QUOTE_MSG, "Driver");
ptr->inp_driver = val.str;
if (strcmp(val.str, "keyboard") == 0)
ptr->inp_driver = "kbd";
else
ptr->inp_driver = val.str;
break;
case OPTION:
ptr->inp_option_lst = xf86parseOption(ptr->inp_option_lst);