Skip to content

Instantly share code, notes, and snippets.

@laurynas
Created May 4, 2011 19:38
Show Gist options
  • Save laurynas/955861 to your computer and use it in GitHub Desktop.
Save laurynas/955861 to your computer and use it in GitHub Desktop.
Execute ACPI wakeup schedule and halt
#!/bin/sh
#
SCHEDULE_CMD="/opt/schedule_acpi_wakeup/schedule_acpi_wakeup.sh"
if [ ! -x $SCHEDULE_CMD ]; then
echo "$SCHEDULE_CMD not found"
exit 1
fi
$SCHEDULE_CMD
/sbin/halt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment