🐉 AGT-DragonShell v4.0

Advanced File Manager with WordPress Integration

Current path: usr/lib/python2.7/site-packages/tuned/hardware/

⬆️ 🔙 Go Up: tuned

📄 Viewing: device_matcher_udev.py

from . import device_matcher
import re

__all__ = ["DeviceMatcherUdev"]

class DeviceMatcherUdev(device_matcher.DeviceMatcher):
	def match(self, regex, device):
		"""
		Match a device against the udev regex in tuning profiles.

		device is a pyudev.Device object
		"""

		properties = ''

		try:
			items = device.properties.items()
		except AttributeError:
			items = device.items()

		for key, val in list(items):
			properties += key + '=' + val + '\n'

		return re.search(regex, properties, re.MULTILINE) is not None

📂 File Manager

📤 Upload File


📁 Create Folder


🐉 AGT-DragonShell • v4.0 • Advanced File Management System