Add a new line the end of the acpid action script
authorNikos Skalkotos <skalkoto@grnet.gr>
Sat, 24 Mar 2012 08:50:03 +0000 (10:50 +0200)
committerNikos Skalkotos <skalkoto@grnet.gr>
Sat, 24 Mar 2012 08:50:03 +0000 (10:50 +0200)
image_creator/os_type/linux.py

index 130fbc8..f22eb06 100644 (file)
@@ -67,7 +67,7 @@ class Linux(Unix):
             print 'Fixing acpid powerdown action'
 
         powerbtn_action = '#!/bin/sh\n\nPATH=/sbin:/bin:/usr/bin\n' \
             print 'Fixing acpid powerdown action'
 
         powerbtn_action = '#!/bin/sh\n\nPATH=/sbin:/bin:/usr/bin\n' \
-                                'shutdown -h now \"Power button pressed\"'
+                                'shutdown -h now \"Power button pressed\"\n'
 
         events_dir = '/etc/acpi/events'
         if not self.g.is_dir(events_dir):
 
         events_dir = '/etc/acpi/events'
         if not self.g.is_dir(events_dir):