Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
lomoco
tohal.awk
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tohal.awk of Package lomoco
#!/bin/awk -f BEGIN { FS = "," print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" print "<deviceinfo version=\"0.2\">" print " <device>" print " <match key=\"info.subsystem\" string=\"usb_device\">" print " <match key=\"usb_device.vendor_id\" int=\"0x046d\">" } $1 ~ /0xc[a-f0-9][a-f0-9][a-f0-9]/ { print " <!-- " substr($3, index($3, "\"")) ", " $2 " -->" print " <match key=\"usb_device.product_id\" int=\"0x" \ substr($1, index($1, "x")+1) "\">" print " <append key=\"info.capabilities\" type=\"strlist\">access_control</append>" print " <merge key=\"access_control.file\" type=\"copy_property\">linux.device_file</merge>" print " <merge key=\"access_control.type\" type=\"string\">mouse</merge>" print " </match>" } END { print " </match>" print " </match>" print " </device>" print "</deviceinfo>" }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor