From: Hugo Villeneuve Date: Sat, 23 Aug 2014 22:04:27 +0000 (-0400) Subject: Fix bug with sleep button event handler and netlink X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=d35471889a47ffadb59b073f369d71703bbc038d;p=hvlinux.git Fix bug with sleep button event handler and netlink The suspend2ram.sh script was called two times: one for the event SBTN, and when resuming, another time for the netlink event. Now call suspend2ram.sh script only for the sleep button event. --- diff --git a/stage2/misc/acpi/events/button-sleep b/stage2/misc/acpi/events/button-sleep index 3624cc7..8454487 100644 --- a/stage2/misc/acpi/events/button-sleep +++ b/stage2/misc/acpi/events/button-sleep @@ -1,3 +1,3 @@ # When the lid is closed, go into suspend to ram -event=button/sleep +event=button/sleep SBTN* action=/etc/acpi/suspend2ram.sh button-sleep