Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 90942 Details for
Bug 119989
Allow configuration of udev coldplug functionality
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds --no-scan-{block,bus,class} options to udevtrigger
x (text/plain), 1.31 KB, created by
Roy Marples (RETIRED)
on 2006-07-05 03:04:13 UTC
(
hide
)
Description:
Adds --no-scan-{block,bus,class} options to udevtrigger
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2006-07-05 03:04:13 UTC
Size:
1.31 KB
patch
obsolete
>--- udev-094.orig/udevtrigger.c 2006-06-12 09:27:03.000000000 +0100 >+++ udev-094/udevtrigger.c 2006-07-05 10:57:54.662529856 +0100 >@@ -321,6 +321,9 @@ > int main(int argc, char *argv[], char *envp[]) > { > int i; >+ int scan_block = 1; >+ int scan_bus = 1; >+ int scan_class = 1; > > logging_init("udevtrigger"); > udev_config_init(); >@@ -331,21 +334,28 @@ > for (i = 1 ; i < argc; i++) { > char *arg = argv[i]; > >- if (strcmp(arg, "--verbose") == 0 || strcmp(arg, "-v") == 0) >+ if (strcmp(arg, "--no-scan-block") == 0) >+ scan_block = 0; >+ else if (strcmp(arg, "--no-scan-bus") == 0) >+ scan_bus = 0; >+ else if (strcmp(arg, "--no-scan-class") == 0) >+ scan_class = 0; >+ else if (strcmp(arg, "--verbose") == 0 || strcmp(arg, "-v") == 0) > verbose = 1; > else if (strcmp(arg, "--dry-run") == 0 || strcmp(arg, "-n") == 0) > dry_run = 1; > else { >- fprintf(stderr, "Usage: udevtrigger [--verbose] [--dry-run]\n"); >+ fprintf(stderr, "Usage: udevtrigger [--no-scan-block] [--no-scan-bus] [--no-scan-class]\n"); >+ fprintf(stderr, " [--verbose] [--dry-run]\n"); > goto exit; > } > } > > sysfs_init(); > >- udev_scan_bus(); >- udev_scan_class(); >- udev_scan_block(); >+ if (scan_bus) udev_scan_bus(); >+ if (scan_class) udev_scan_class(); >+ if (scan_block) udev_scan_block(); > exec_lists(); > > sysfs_cleanup();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 119989
: 90942 |
90943
|
91011
|
91028