[mythtv-users] Carbon Footprint
Bill Meek
keemllib at gmail.com
Thu Sep 5 22:24:39 UTC 2013
On 09/05/2013 05:12 PM, Daryl McDonald wrote:
>
> http://paste.ubuntu.com/6068212/
>
> Here it is,Daryl
And here's what it looks like when I download it from the pastebin.
It's full of garbage characters. You need a fresh copy.
#!/bin/sh
#
# set ACPI Wakeup time
# usage: setwakeup.sh seconds
#Â Â Â seconds - number of seconds from epoch to UTC time (time_t time format)
#
# set UTCBIOS to true if bios is using UTC time
# set UTCBIOS to false if bios is using local time
UTCBIOS=false
if $UTCBIOS
then
   #utc bios - use supplied seconds
   SECS=$1
else
   #non utc bios - convert supplied seconds to seconds from
   #epoch to local time
   SECS=`date -u --date "\`date --date @$1 +%F" "%T\`" +%s`
fi
echo 0 > /sys/class/rtc/rtc0/wakealarm      # clear alarm
echo $SECS > /sys/class/rtc/rtc0/wakealarm  # write the waketime
OR:
Just replace everything in the file now, with the following:
#!/bin/sh
echo 0 > /sys/class/rtc/rtc0/wakealarm
sleep 1
echo $1 > /sys/class/rtc/rtc0/wakealarm
--
Bill
More information about the mythtv-users
mailing list