Revision: 5888 Author: pebender Date: Tue Dec 1 09:45:52 2009 Log: - Changed hotplug udev scripts (currently only Xorg has one) so that they are disabled initially. _ Added the init script hotplug to enable the hotplug udev scripts.
http://code.google.com/p/minimyth/source/detail?r=5888 Added: /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/hotplug.pm /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/rules.d/06-minimyth-hotplug-03-xorg.rules.disabled Deleted: /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/rules.d/06-minimyth-xorg-evdev.rules Modified: /trunk/gar-minimyth/html/minimyth/document-changelog.txt /trunk/gar-minimyth/script/meta/minimyth/files/configure.mk ======================================= --- /dev/null +++ /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/hotplug.pm Tue Dec 1 09:45:52 2009 @@ -0,0 +1,42 @@ +################################################################################ +# hotplug +################################################################################ +package init::hotplug; + +use strict; +use warnings; + +use MiniMyth (); + +sub start +{ + my $self = shift; + my $minimyth = shift; + + $minimyth->message_output('info', "enabling udev hotplug scripts ..."); + + # Real time clock. + + if (opendir(DIR, '/lib/udev/rules.d')) + { + foreach (grep(s/^(06-minimyth-hotplug-.*\.rules)\.disabled$/$1/, (readdir(DIR)))) + { + rename("/lib/udev/rules.d/$_.disabled", "/lib/udev/rules.d/$_"); + } + closedir(DIR); + } + system(qq(/sbin/udevadm trigger)); + system(qq(/sbin/udevadm settle --timeout=60)); + + return 1; +} + +sub stop +{ + my $self = shift; + my $minimyth = shift; + + return 1; +} + +1; ======================================= --- /dev/null +++ /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/rules.d/06-minimyth-hotplug-03-xorg.rules.disabled Tue Dec 1 09:45:52 2009 @@ -0,0 +1,15 @@ +ACTION=="add", ENV{mm_device_owner}=="?*", GOTO="end" + +ACTION!="add|remove", GOTO="end" + +KERNEL=="event[0-9]*", SUBSYSTEM=="input", GOTO="begin" +GOTO="end" +LABEL="begin" + +PROGRAM="mm_device_blacklist xorg", RESULT=="yes", GOTO="end" + +ENV{x11_driver}="evdev" + +ENV{mm_device_owner}="xorg" + +LABEL="end" ======================================= --- /trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/rules.d/06-minimyth-xorg-evdev.rules Sat Nov 7 13:25:49 2009 +++ /dev/null @@ -1,11 +0,0 @@ -ENV{mm_device_owner}=="?*", GOTO="end" - -SUBSYSTEM!="input", GOTO="end" -KERNEL=!"event*" GOTO="end" -PROGRAM="mm_device_blacklist x_event", RESULT=="yes", GOTO="end" - -ENV{x11_driver}="evdev" - -ENV{mm_device_owner}="xorg" - -LABEL="end" ======================================= --- /trunk/gar-minimyth/html/minimyth/document-changelog.txt Tue Dec 1 09:37:29 2009 +++ /trunk/gar-minimyth/html/minimyth/document-changelog.txt Tue Dec 1 09:45:52 2009 @@ -19,6 +19,9 @@ Modified init - Added MM_X_FETCH_XBINDKEYSRC. + - Changed hotplug udev scripts (currently only Xorg has one) so that they + are disabled initially. + _ Added the init script hotplug to enable the hotplug udev scripts. Modified mediaplayers - Updated FFmpeg and MPlayer multi-threading patches. ======================================= --- /trunk/gar-minimyth/script/meta/minimyth/files/configure.mk Thu Nov 19 16:53:28 2009 +++ /trunk/gar-minimyth/script/meta/minimyth/files/configure.mk Tue Dec 1 09:45:52 2009 @@ -12,6 +12,7 @@ console \ telnet \ ssh_server \ + hotplug \ cron \ game \ master \ @@ -59,6 +60,7 @@ acpi \ game \ cron \ + hotplug \ ssh_server \ telnet \ cpu \ -- You received this message because you are subscribed to the Google Groups "minimyth-commits" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/minimyth-commits?hl=en.
