Revision 3d083be5 image_creator/os_type/linux.py
b/image_creator/os_type/linux.py | ||
---|---|---|
34 | 34 |
'\"Power button pressed\"' |
35 | 35 |
|
36 | 36 |
if self.g.is_file('/etc/acpi/powerbtn.sh'): |
37 |
self.g.write(action, '/etc/acpi/powerbtn.sh')
|
|
37 |
self.g.write('/etc/acpi/powerbtn.sh', action)
|
|
38 | 38 |
elif self.g.is_file('/etc/acpi/actions/power.sh'): |
39 |
self.g.write(actions, '/etc/acpi/actions/power.sh')
|
|
39 |
self.g.write('/etc/acpi/actions/power.sh', action)
|
|
40 | 40 |
else: |
41 | 41 |
print "Warning: No acpid action file found" |
42 | 42 |
|
Also available in: Unified diff