#!/bin/sh time=$1 sudo /bin/echo 0 > /sys/class/rtc/rtc0/wakealarm sudo /bin/echo `/bin/date '+%s' -d "$time"` > /sys/class/rtc/rtc0/wakealarm