Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Build init as C++. | Elliott Hughes | 2015-02-04 | 1 | -0/+1 |
| | | | | | | This is just the minimal change to keep it building. Change-Id: I245c5b8413a1db114576c81462eb5737f5ffcef2 | ||||
* | init/ueventd: adds wildcard matching for ueventd rules | Daniel Leung | 2014-06-20 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sysfs nodes can change from devices to devices for a particular class of peripheral. Some of them even change after suspend/resume, e.g. rfkill for USB bluetooth adapters. This patch adds to the way how ueventd rules with wildcard are handled. In addition to matching the prefix with a trailing wildcard, now rules can have wildcard anywhere in the rule. The wildcard matching is implemented using fnmatch(), where its matching is simliar to shell pathname expansion. It suits this particular usage model well. To avoid abuse, the number of slashes has to match between path name and the rule. For example, instead of creating a rule to match: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/bluetooth/hci0/rfkill* , this would suffice: /sys/devices/pci0000:00/0000:00:1d.0/*/*/*/*/bluetooth/hci0/rfkill* The prefix matching behavior is retained, such that those rules do not have to pay for processing penalty with fnmatch(). Change-Id: I3ae6a39c838f6d12801cb71958e481b016f731f5 Signed-off-by: Daniel Leung <daniel.leung@intel.com> | ||||
* | init: support owner/permission setting for sysfs attributes of devices | Brian Swetland | 2010-10-26 | 1 | -1/+2 |
| | | | | | | | | | This should be much nicer than peppering init.rc with chown/chmod directives. Also, remove some dead code and obsolete comments. Change-Id: I10895f10a9cf2f1226c8d12976cd3db3743da9ec | ||||
* | init: Move uevent handling to an external ueventd process | Colin Cross | 2010-04-21 | 1 | -4/+4 |
| | | | | Change-Id: Iea6c56013062ade633a1754f7bcf8cf09b3dedc1 | ||||
* | init: Move device_fd to devices.c | Colin Cross | 2010-04-13 | 1 | -3/+3 |
| | | | | Change-Id: I11ed0f3e1b95d2cff4fdbd80b915c01572f76b0e | ||||
* | auto import from //depot/cupcake/@135843 | The Android Open Source Project | 2009-03-03 | 1 | -0/+27 |
| | |||||
* | auto import from //depot/cupcake/@135843 | The Android Open Source Project | 2009-03-03 | 1 | -27/+0 |
| | |||||
* | Initial Contribution | The Android Open Source Project | 2008-10-21 | 1 | -0/+27 |