|
Lines 323-329
Link Here
|
| 323 |
} |
323 |
} |
| 324 |
|
324 |
|
| 325 |
/* Read and parse the config file */ |
325 |
/* Read and parse the config file */ |
| 326 |
if (!xf86DoProbe && !xf86DoConfigure) { |
326 |
if (!xf86DoProbe && !xf86DoConfigure && !xf86DoShowOptions) { |
| 327 |
switch (xf86HandleConfigFile(FALSE)) { |
327 |
switch (xf86HandleConfigFile(FALSE)) { |
| 328 |
case CONFIG_OK: |
328 |
case CONFIG_OK: |
| 329 |
break; |
329 |
break; |
|
Lines 385-390
Link Here
|
| 385 |
|
385 |
|
| 386 |
#endif |
386 |
#endif |
| 387 |
|
387 |
|
|
|
388 |
if (xf86DoShowOptions) |
| 389 |
DoShowOptions(); |
| 390 |
|
| 388 |
xf86OpenConsole(); |
391 |
xf86OpenConsole(); |
| 389 |
|
392 |
|
| 390 |
/* Do a general bus probe. This will be a PCI probe for x86 platforms */ |
393 |
/* Do a general bus probe. This will be a PCI probe for x86 platforms */ |
|
Lines 1687-1692
Link Here
|
| 1687 |
xf86AllowMouseOpenFail = TRUE; |
1690 |
xf86AllowMouseOpenFail = TRUE; |
| 1688 |
return 1; |
1691 |
return 1; |
| 1689 |
} |
1692 |
} |
|
|
1693 |
if (!strcmp(argv[i], "-showopts")) |
| 1694 |
{ |
| 1695 |
if (getuid() != 0 && geteuid == 0) { |
| 1696 |
ErrorF("The '-showopts' option can only be used by root.\n"); |
| 1697 |
exit(1); |
| 1698 |
} |
| 1699 |
xf86DoShowOptions = TRUE; |
| 1700 |
return 1; |
| 1701 |
} |
| 1690 |
if (!strcmp(argv[i], "-isolateDevice")) |
1702 |
if (!strcmp(argv[i], "-isolateDevice")) |
| 1691 |
{ |
1703 |
{ |
| 1692 |
int bus, device, func; |
1704 |
int bus, device, func; |
|
Lines 1729-1734
Link Here
|
| 1729 |
ErrorF("-modulepath paths specify the module search path\n"); |
1741 |
ErrorF("-modulepath paths specify the module search path\n"); |
| 1730 |
ErrorF("-logfile file specify a log file name\n"); |
1742 |
ErrorF("-logfile file specify a log file name\n"); |
| 1731 |
ErrorF("-configure probe for devices and write an "__XCONFIGFILE__"\n"); |
1743 |
ErrorF("-configure probe for devices and write an "__XCONFIGFILE__"\n"); |
|
|
1744 |
ErrorF("-showopts print available options for all installed drivers\n"); |
| 1732 |
} |
1745 |
} |
| 1733 |
ErrorF("-config file specify a configuration file, relative to the\n"); |
1746 |
ErrorF("-config file specify a configuration file, relative to the\n"); |
| 1734 |
ErrorF(" "__XCONFIGFILE__" search path, only root can use absolute\n"); |
1747 |
ErrorF(" "__XCONFIGFILE__" search path, only root can use absolute\n"); |