Commit c0f3abdc authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix fix_acpid syspep

Extend the mechanism to recognise events with value "button/power.*"
as power button events. It used to only check for events with value
"button[ /]power".
parent e1e7b843
......@@ -91,7 +91,7 @@ class Linux(Unix):
action =
if event.strip() == "button[ /]power":
if event.strip() in ("button[ /]power", "button/power.*"):
if action:
if not self.g.is_file(action):
self.out.warn("Acpid action file: %s does not exist" %
......@@ -114,6 +114,8 @@ class Linux(Unix):
self.out.warn("No acpi power button event found!")
def remove_persistent_net_rules(self, print_header=True):
"""Remove udev rules that will keep network interface names persistent
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment